struct Node {
data_offset: u32,
data_size: u32,
bin_list_prev: Option<NodeIndex>,
bin_list_next: Option<NodeIndex>,
neighbor_prev: Option<NodeIndex>,
neighbor_next: Option<NodeIndex>,
used: bool,
}Expand description
A range of the managed chunk: either an allocation or the free space around one.
Fields§
§data_offset: u32Where the range starts, in units.
data_size: u32How large the range is, in units.
bin_list_prev: Option<NodeIndex>The previous node of the size bin’s list, when the range is free.
bin_list_next: Option<NodeIndex>The next node of the size bin’s list, when the range is free.
neighbor_prev: Option<NodeIndex>The range that precedes this one in the chunk, allocated or free.
neighbor_next: Option<NodeIndex>The range that follows this one in the chunk, allocated or free.
used: boolWhether this range is handed out.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Node
impl Freeze for Node
impl RefUnwindSafe for Node
impl Send for Node
impl Sync for Node
impl Unpin for Node
impl UnsafeUnpin for Node
impl UnwindSafe for Node
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more