pub struct Range {
pub start: u32,
pub len: u32,
}Expand description
A block of the value heap. len is zero or a class size.
Fields§
§start: u32§len: u32Implementations§
Source§impl Range
impl Range
pub const EMPTY: Range
Sourcepub const fn log(self) -> u8
pub const fn log(self) -> u8
The u8 code stored in object headers: the class’s exponent, with
bit 7 set for three times a power of two (len = ((2 | m) << e) / 2);
u8::MAX for an empty range.
Sourcepub const fn exponent(self) -> u8
pub const fn exponent(self) -> u8
Range::log of a power-of-two range.
Sourcepub const fn from_exponent(start: u32, log: u8) -> Range
pub const fn from_exponent(start: u32, log: u8) -> Range
Range::from_log for a code without the mantissa bit (a
power-of-two range).
pub const fn from_log(start: u32, log: u8) -> Range
Trait Implementations§
impl Copy for Range
impl Eq for Range
impl StructuralPartialEq for Range
Auto Trait Implementations§
impl Freeze for Range
impl RefUnwindSafe for Range
impl Send for Range
impl Sync for Range
impl Unpin for Range
impl UnsafeUnpin for Range
impl UnwindSafe for Range
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more