Struct catalyst_entities::FragRef
source · #[repr(transparent)]pub struct FragRef<T: ?Sized>(_, _);Expand description
An id pointing to some item in frag storage family. Wrapper aroung untyped FragAddr.
Implementations§
Trait Implementations§
source§impl<T: ?Sized> Archive for FragRef<T>where
FragAddr: Archive,
PhantomData<*const T>: Archive,
impl<T: ?Sized> Archive for FragRef<T>where FragAddr: Archive, PhantomData<*const T>: Archive,
source§impl<__D: Fallible + ?Sized, T: ?Sized> Deserialize<FragRef<T>, __D> for Archived<FragRef<T>>where
FragAddr: Archive,
Archived<FragAddr>: Deserialize<FragAddr, __D>,
PhantomData<*const T>: Archive,
Archived<PhantomData<*const T>>: Deserialize<PhantomData<*const T>, __D>,
impl<__D: Fallible + ?Sized, T: ?Sized> Deserialize<FragRef<T>, __D> for Archived<FragRef<T>>where FragAddr: Archive, Archived<FragAddr>: Deserialize<FragAddr, __D>, PhantomData<*const T>: Archive, Archived<PhantomData<*const T>>: Deserialize<PhantomData<*const T>, __D>,
source§impl<T: NoInteriorMutability> Index<FragRef<T>> for SyncFragMap<T>
impl<T: NoInteriorMutability> Index<FragRef<T>> for SyncFragMap<T>
source§impl<T: ?Sized> Ord for FragRef<T>
impl<T: ?Sized> Ord for FragRef<T>
source§impl<T: ?Sized> PartialEq<FragRef<T>> for FragRef<T>
impl<T: ?Sized> PartialEq<FragRef<T>> for FragRef<T>
source§impl<T: ?Sized> PartialOrd<FragRef<T>> for FragRef<T>
impl<T: ?Sized> PartialOrd<FragRef<T>> for FragRef<T>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresource§impl<__S: Fallible + ?Sized, T: ?Sized> Serialize<__S> for FragRef<T>where
FragAddr: Serialize<__S>,
PhantomData<*const T>: Serialize<__S>,
impl<__S: Fallible + ?Sized, T: ?Sized> Serialize<__S> for FragRef<T>where FragAddr: Serialize<__S>, PhantomData<*const T>: Serialize<__S>,
impl<T: ?Sized> Copy for FragRef<T>
impl<T: ?Sized> Eq for FragRef<T>
impl<T: ?Sized> Send for FragRef<T>
impl<T: ?Sized> Sync for FragRef<T>
Auto Trait Implementations§
impl<T: ?Sized> ArchiveCopy for FragRef<T>
impl<T: ?Sized> NoInteriorMutability for FragRef<T>where T: NoInteriorMutability,
impl<T: ?Sized> RefUnwindSafe for FragRef<T>where T: RefUnwindSafe,
impl<T: ?Sized> Unpin for FragRef<T>
impl<T: ?Sized> UnwindSafe for FragRef<T>where T: RefUnwindSafe,
Blanket Implementations§
source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
source§impl<T> ArchiveUnsized for Twhere
T: Archive,
impl<T> ArchiveUnsized for Twhere T: Archive,
§type Archived = <T as Archive>::Archived
type Archived = <T as Archive>::Archived
The archived counterpart of this type. Unlike
Archive, it may be unsized. Read more§type MetadataResolver = ()
type MetadataResolver = ()
The resolver for the metadata of this type. Read more
source§unsafe fn resolve_metadata(
&self,
_: usize,
_: <T as ArchiveUnsized>::MetadataResolver,
_: *mut <<T as ArchiveUnsized>::Archived as ArchivePointee>::ArchivedMetadata
)
unsafe fn resolve_metadata( &self, _: usize, _: <T as ArchiveUnsized>::MetadataResolver, _: *mut <<T as ArchiveUnsized>::Archived as ArchivePointee>::ArchivedMetadata )
Creates the archived version of the metadata for this value at the given position and writes
it to the given output. Read more