Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.starknet.io/llms.txt

Use this file to discover all available pages before exploring further.

The division assignment operator /=.

Signature

pub trait DivAssign

Trait functions

div_assign

Performs the /= operation.

Signature

fn div_assign(ref self: Lhs, rhs: Rhs)

Examples

let mut x: u8 = 3;
x /= x;
assert!(x == 1);