Struct rkyv_dyn::ArchivedDynMetadata [−][src]
pub struct ArchivedDynMetadata<T: ?Sized> { /* fields omitted */ }
Expand description
The archived version of DynMetadata
.
Implementations
impl<T: TypeName + ?Sized> ArchivedDynMetadata<T>
[src]
impl<T: TypeName + ?Sized> ArchivedDynMetadata<T>
[src]pub fn emplace(type_id: u64, out: &mut MaybeUninit<Self>)
[src]
pub fn emplace(type_id: u64, out: &mut MaybeUninit<Self>)
[src]Creates a new ArchivedDynMetadata
for the given type.
pub fn vtable(&self) -> usize
[src]
pub fn vtable(&self) -> usize
[src]Gets the vtable address for this trait object. With the vtable_cache
feature, this will
store the address locally on the first lookup.
pub fn pointer_metadata(&self) -> DynMetadata<T>
[src]
pub fn pointer_metadata(&self) -> DynMetadata<T>
[src]Gets the DynMetadata
associated with this ArchivedDynMetadata
.
Trait Implementations
impl<T: TypeName + ?Sized, C: ?Sized> CheckBytes<C> for ArchivedDynMetadata<T>
[src]
impl<T: TypeName + ?Sized, C: ?Sized> CheckBytes<C> for ArchivedDynMetadata<T>
[src]type Error = DynMetadataError
type Error = DynMetadataError
The error that may result from checking the type.
unsafe fn check_bytes<'a>(
value: *const Self,
context: &mut C
) -> Result<&'a Self, Self::Error>
[src]
unsafe fn check_bytes<'a>(
value: *const Self,
context: &mut C
) -> Result<&'a Self, Self::Error>
[src]Checks whether the given pointer points to a valid value within the given context. Read more
Auto Trait Implementations
impl<T: ?Sized> RefUnwindSafe for ArchivedDynMetadata<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T: ?Sized> Send for ArchivedDynMetadata<T> where
T: Send,
T: Send,
impl<T: ?Sized> Sync for ArchivedDynMetadata<T> where
T: Sync,
T: Sync,
impl<T: ?Sized> Unpin for ArchivedDynMetadata<T> where
T: Unpin,
T: Unpin,
impl<T: ?Sized> UnwindSafe for ArchivedDynMetadata<T> where
T: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> ArchivePointee for T
[src]
impl<T> ArchivePointee for T
[src]type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
pub fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
[src]
pub fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
[src]Converts some archived metadata to the pointer metadata for itself.
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more