pub struct TaggedPtr<T> {
pub ptr: Ptr<T>,
pub tag: Tag,
}Expand description
A packaged representation of a pointer and a generation tag.
Used for atomic operations with AtomicTaggedPtr.
Fields§
§ptr: Ptr<T>The physical pointer wrapper.
tag: TagThe generation tag for ABA protection.
Implementations§
Trait Implementations§
Source§impl<T> IntoOptionNonNull<T> for TaggedPtr<T>
impl<T> IntoOptionNonNull<T> for TaggedPtr<T>
Source§fn into_option_non_null(self) -> Option<NonNull<T>>
fn into_option_non_null(self) -> Option<NonNull<T>>
Converts
self into Option<NonNull<T>>.Source§impl<T: PartialEq> PartialEq for TaggedPtr<T>
impl<T: PartialEq> PartialEq for TaggedPtr<T>
impl<T> Copy for TaggedPtr<T>
impl<T: Eq> Eq for TaggedPtr<T>
impl<T> StructuralPartialEq for TaggedPtr<T>
Auto Trait Implementations§
impl<T> Freeze for TaggedPtr<T>
impl<T> RefUnwindSafe for TaggedPtr<T>where
T: RefUnwindSafe,
impl<T> !Send for TaggedPtr<T>
impl<T> !Sync for TaggedPtr<T>
impl<T> Unpin for TaggedPtr<T>
impl<T> UnsafeUnpin for TaggedPtr<T>
impl<T> UnwindSafe for TaggedPtr<T>where
T: RefUnwindSafe,
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