Struct rustc_data_structures::tagged_ptr::TaggedPtr
source · pub struct TaggedPtr<P, T, const COMPARE_PACKED: bool>where
P: Pointer,
T: Tag,{
raw: CopyTaggedPtr<P, T, COMPARE_PACKED>,
}
Expand description
A TaggedPtr implementing Drop
.
If COMPARE_PACKED
is true, then the pointers will be compared and hashed without
unpacking. Otherwise we don’t implement PartialEq/Eq/Hash; if you want that,
wrap the TaggedPtr.
Fields
raw: CopyTaggedPtr<P, T, COMPARE_PACKED>
Implementations
Trait Implementations
sourceimpl<P, T, const COMPARE_PACKED: bool> Clone for TaggedPtr<P, T, COMPARE_PACKED>where
P: Pointer + Clone,
T: Tag,
impl<P, T, const COMPARE_PACKED: bool> Clone for TaggedPtr<P, T, COMPARE_PACKED>where
P: Pointer + Clone,
T: Tag,
sourceimpl<P, T, const COMPARE_PACKED: bool> Debug for TaggedPtr<P, T, COMPARE_PACKED>where
P: Pointer,
P::Target: Debug,
T: Tag + Debug,
impl<P, T, const COMPARE_PACKED: bool> Debug for TaggedPtr<P, T, COMPARE_PACKED>where
P: Pointer,
P::Target: Debug,
T: Tag + Debug,
sourceimpl<P, T, const COMPARE_PACKED: bool> Deref for TaggedPtr<P, T, COMPARE_PACKED>where
P: Pointer,
T: Tag,
impl<P, T, const COMPARE_PACKED: bool> Deref for TaggedPtr<P, T, COMPARE_PACKED>where
P: Pointer,
T: Tag,
sourceimpl<P, T, const COMPARE_PACKED: bool> DerefMut for TaggedPtr<P, T, COMPARE_PACKED>where
P: Pointer + DerefMut,
T: Tag,
impl<P, T, const COMPARE_PACKED: bool> DerefMut for TaggedPtr<P, T, COMPARE_PACKED>where
P: Pointer + DerefMut,
T: Tag,
sourceimpl<P, T, const COMPARE_PACKED: bool> Drop for TaggedPtr<P, T, COMPARE_PACKED>where
P: Pointer,
T: Tag,
impl<P, T, const COMPARE_PACKED: bool> Drop for TaggedPtr<P, T, COMPARE_PACKED>where
P: Pointer,
T: Tag,
sourceimpl<P, T, HCX, const COMPARE_PACKED: bool> HashStable<HCX> for TaggedPtr<P, T, COMPARE_PACKED>where
P: Pointer + HashStable<HCX>,
T: Tag + HashStable<HCX>,
impl<P, T, HCX, const COMPARE_PACKED: bool> HashStable<HCX> for TaggedPtr<P, T, COMPARE_PACKED>where
P: Pointer + HashStable<HCX>,
T: Tag + HashStable<HCX>,
fn hash_stable(&self, hcx: &mut HCX, hasher: &mut StableHasher)
sourceimpl<P, T> PartialEq<TaggedPtr<P, T, true>> for TaggedPtr<P, T, true>where
P: Pointer,
T: Tag,
impl<P, T> PartialEq<TaggedPtr<P, T, true>> for TaggedPtr<P, T, true>where
P: Pointer,
T: Tag,
impl<P, T> Eq for TaggedPtr<P, T, true>where
P: Pointer,
T: Tag,
Auto Trait Implementations
impl<P, T, const COMPARE_PACKED: bool> RefUnwindSafe for TaggedPtr<P, T, COMPARE_PACKED>where
P: RefUnwindSafe,
T: RefUnwindSafe,
impl<P, T, const COMPARE_PACKED: bool> Send for TaggedPtr<P, T, COMPARE_PACKED>where
P: Send,
T: Send,
impl<P, T, const COMPARE_PACKED: bool> Sync for TaggedPtr<P, T, COMPARE_PACKED>where
P: Sync,
T: Sync,
impl<P, T, const COMPARE_PACKED: bool> Unpin for TaggedPtr<P, T, COMPARE_PACKED>where
P: Unpin,
T: Unpin,
impl<P, T, const COMPARE_PACKED: bool> UnwindSafe for TaggedPtr<P, T, COMPARE_PACKED>where
P: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<'a, T> Captures<'a> for Twhere
T: ?Sized,
impl<T> Erased for T
Layout
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 8 bytes