pub struct GcPtr(/* private fields */);Expand description
A GcPtr is what you interact with outside of the allocator. It is a pointer to a piece of
memory that points to the actual data stored in memory.
This creates an indirection that must be followed to get to the actual data of the object. Note
that the GcPtr must therefore be pinned in memory whereas the contained memory pointer may
change.
Trait Implementations§
Source§impl HasIndirectionPtr for GcPtr
impl HasIndirectionPtr for GcPtr
Source§impl Ord for GcPtr
impl Ord for GcPtr
Source§impl PartialOrd for GcPtr
impl PartialOrd for GcPtr
impl Copy for GcPtr
impl Eq for GcPtr
impl Send for GcPtr
A GcPtr is thread safe.
impl StructuralPartialEq for GcPtr
impl Sync for GcPtr
Auto Trait Implementations§
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