pub struct Slice {
pub start: u32,
pub len: u32,
}Expand description
A contiguous run in one of Plan’s pools.
Which pool is decided by the field that holds the slice, the same way a u32 reference is only
meaningful in the arena it came from. A slice is Copy and eight bytes, so a node holding four
of them is still a node that fits in a cache line.
Fields§
§start: u32Index of the first element.
len: u32Number of elements.
Implementations§
Trait Implementations§
impl Copy for Slice
impl Eq for Slice
impl StructuralPartialEq for Slice
Auto Trait Implementations§
impl Freeze for Slice
impl RefUnwindSafe for Slice
impl Send for Slice
impl Sync for Slice
impl Unpin for Slice
impl UnsafeUnpin for Slice
impl UnwindSafe for Slice
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