Skip to main content

integer

Function integer 

Source
pub fn integer<'a>(
    v: &'a Value,
    context: &str,
    budget: &mut Budget,
) -> OpResult<Cow<'a, Integer>>
Expand description

Checked integer context: preserve ints, convert exactly integral finite floats, and never round or admit other numeric types implicitly.