Module utils

Source

Re-exports§

pub use interp::*;
pub use tracked_state::*;

Modules§

interp
tracked_state

Constants§

COMP_EPSILON
DIRECT_SET_ERR
Error message for when user attempts to set value in a nested struct.

Functions§

abs_checked_x_val
Returns absolute value of x_val
almost_eq
Returns true if val1 and val2 are within a relative/absolute epsilon of each other, depending on magnitude.
almost_eq_uom
Arguments
almost_ge
Returns true if val1 is greater than or equal to val2 with some error margin, epsilon
almost_ge_uom
Arguments
almost_gt
almost_gt_uom
Arguments
almost_le
Returns true if val1 is less than or equal to val2 with some error margin, epsilon
almost_le_uom
Arguments
almost_lt
almost_lt_uom
Arguments
check_monotonicity
Verifies that passed data is monotonically increasing.
is_sorted
Function for sorting a slice that implements std::cmp::PartialOrd. Remove this once is_sorted is stabilized in std
return_true
returns true for use with serde default
tire_code_to_radius
Calculate tire radius (in meters) from an ISO metric tire code