pub trait NanIntExt {
// Required methods
fn as_aver_int(self, arena: &Arena) -> AverInt;
fn from_aver_int(value: AverInt, arena: &mut Arena) -> NanValue;
}Expand description
Read/write AverInt values through a NanValue integer.
Required Methods§
Sourcefn as_aver_int(self, arena: &Arena) -> AverInt
fn as_aver_int(self, arena: &Arena) -> AverInt
Materialize the integer as a canonical AverInt. Inline and
i64-overflow slots become Small; the ℤ-overflow slot becomes Big.
Sourcefn from_aver_int(value: AverInt, arena: &mut Arena) -> NanValue
fn from_aver_int(value: AverInt, arena: &mut Arena) -> NanValue
Store an AverInt, keeping the representation canonical: a Small
goes through the inline / i64-overflow path, a Big is boxed into
the arena. Only values genuinely outside i64 allocate.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".