pub struct SlabRef {
pub index: usize,
}Expand description
A handle into the object slab. Lightweight, copyable index.
This is API-compatible with the old GcRef so that Value::ClassRef
continues to work without changes.
Fields§
§index: usizeTrait Implementations§
impl Copy for SlabRef
impl Eq for SlabRef
impl StructuralPartialEq for SlabRef
Auto Trait Implementations§
impl Freeze for SlabRef
impl RefUnwindSafe for SlabRef
impl Send for SlabRef
impl Sync for SlabRef
impl Unpin for SlabRef
impl UnsafeUnpin for SlabRef
impl UnwindSafe for SlabRef
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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