cairo_vm::math_utils

Function safe_div

Source
pub fn safe_div(x: &Felt252, y: &Felt252) -> Result<Felt252, MathError>
Expand description

Performs integer division between x and y; fails if x is not divisible by y.