Struct rustc_data_structures::tagged_ptr::CopyTaggedPtr [−][src]
pub struct CopyTaggedPtr<P, T, const COMPARE_PACKED: bool> where
P: Pointer,
T: Tag, {
packed: NonZeroUsize,
data: PhantomData<(P, T)>,
}
Expand description
A Copy
TaggedPtr.
You should use this instead of the TaggedPtr
type in all cases where
P: Copy
.
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
packed: NonZeroUsize
data: PhantomData<(P, T)>
Implementations
impl<P, T, const COMPARE_PACKED: bool> CopyTaggedPtr<P, T, COMPARE_PACKED> where
P: Pointer,
T: Tag,
impl<P, T, const COMPARE_PACKED: bool> CopyTaggedPtr<P, T, COMPARE_PACKED> where
P: Pointer,
T: Tag,
Trait Implementations
impl<P, T, HCX, const COMPARE_PACKED: bool> HashStable<HCX> for CopyTaggedPtr<P, T, COMPARE_PACKED> where
P: Pointer + HashStable<HCX>,
T: Tag + HashStable<HCX>,
impl<P, T, HCX, const COMPARE_PACKED: bool> HashStable<HCX> for CopyTaggedPtr<P, T, COMPARE_PACKED> where
P: Pointer + HashStable<HCX>,
T: Tag + HashStable<HCX>,
impl<P, T> PartialEq<CopyTaggedPtr<P, T, true>> for CopyTaggedPtr<P, T, true> where
P: Pointer,
T: Tag,
impl<P, T> PartialEq<CopyTaggedPtr<P, T, true>> for CopyTaggedPtr<P, T, true> where
P: Pointer,
T: Tag,
Auto Trait Implementations
impl<P, T, const COMPARE_PACKED: bool> RefUnwindSafe for CopyTaggedPtr<P, T, COMPARE_PACKED> where
P: RefUnwindSafe,
T: RefUnwindSafe,
impl<P, T, const COMPARE_PACKED: bool> Send for CopyTaggedPtr<P, T, COMPARE_PACKED> where
P: Send,
T: Send,
impl<P, T, const COMPARE_PACKED: bool> Sync for CopyTaggedPtr<P, T, COMPARE_PACKED> where
P: Sync,
T: Sync,
impl<P, T, const COMPARE_PACKED: bool> Unpin for CopyTaggedPtr<P, T, COMPARE_PACKED> where
P: Unpin,
T: Unpin,
impl<P, T, const COMPARE_PACKED: bool> UnwindSafe for CopyTaggedPtr<P, T, COMPARE_PACKED> where
P: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
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