Struct rkyv_dyn::ArchivedDynMetadata [−][src]
The archived version of DynMetadata
.
Implementations
impl<T: TypeName + ?Sized> ArchivedDynMetadata<T>
[src]
pub fn new(type_id: u64) -> Self
[src]
Creates a new ArchivedDynMetadata
for the given type.
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]
Gets the DynMetadata
associated with this ArchivedDynMetadata
.
Trait Implementations
impl<T: TypeName + ?Sized, C: ?Sized> CheckBytes<C> for ArchivedDynMetadata<T>
[src]
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]
value: *const Self,
context: &mut C
) -> Result<&'a Self, Self::Error>
Auto Trait Implementations
impl<T: ?Sized> RefUnwindSafe for ArchivedDynMetadata<T> where
T: RefUnwindSafe,
[src]
T: RefUnwindSafe,
impl<T: ?Sized> Send for ArchivedDynMetadata<T> where
T: Send,
[src]
T: Send,
impl<T: ?Sized> Sync for ArchivedDynMetadata<T> where
T: Sync,
[src]
T: Sync,
impl<T: ?Sized> Unpin for ArchivedDynMetadata<T> where
T: Unpin,
[src]
T: Unpin,
impl<T: ?Sized> UnwindSafe for ArchivedDynMetadata<T> where
T: UnwindSafe,
[src]
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> ArchivePointee for T
[src]
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]
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointee for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,