pub struct FreeListLink { /* private fields */ }Expand description
Buddy free-list link storage (intrusive list nodes live in MetaSlot, not in frame bytes).
AtomicU64 matches the rest of the metadata slot’s atomic story and keeps the public
MetaSlot API safe if list helpers are ever used without the buddy spinlock. Today
buddy.rs mutates these fields only while holding the global buddy lock, so plain
Cell<u64> would suffice for ordering; that would be a micro-optimization if profiling shows
hot contention here.
Implementations§
Source§impl FreeListLink
impl FreeListLink
Auto Trait Implementations§
impl !Freeze for FreeListLink
impl RefUnwindSafe for FreeListLink
impl Send for FreeListLink
impl Sync for FreeListLink
impl Unpin for FreeListLink
impl UnsafeUnpin for FreeListLink
impl UnwindSafe for FreeListLink
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
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