Struct rkyv::std_impl::shared::ArchivedRc [−][src]
#[repr(transparent)]pub struct ArchivedRc<T: ArchivePointee + ?Sized>(_);
Expand description
An archived Rc
.
This is a thin wrapper around a RelPtr
to the archived type.
Implementations
Trait Implementations
impl<T: ArchivePointee + CheckBytes<C> + Pointee + ?Sized + 'static, C: ArchiveBoundsContext + SharedArchiveContext + ?Sized> CheckBytes<C> for ArchivedRc<T> where
T::ArchivedMetadata: CheckBytes<C>,
C::Error: Error,
<T as Pointee>::Metadata: LayoutMetadata<T>,
[src]
impl<T: ArchivePointee + CheckBytes<C> + Pointee + ?Sized + 'static, C: ArchiveBoundsContext + SharedArchiveContext + ?Sized> CheckBytes<C> for ArchivedRc<T> where
T::ArchivedMetadata: CheckBytes<C>,
C::Error: Error,
<T as Pointee>::Metadata: LayoutMetadata<T>,
[src]type Error = SharedPointerError<<T::ArchivedMetadata as CheckBytes<C>>::Error, T::Error, C::Error>
type Error = SharedPointerError<<T::ArchivedMetadata as CheckBytes<C>>::Error, T::Error, C::Error>
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 ArchivedRc<T> where
T: RefUnwindSafe,
<T as ArchivePointee>::ArchivedMetadata: RefUnwindSafe,
impl<T: ?Sized> Send for ArchivedRc<T> where
T: Send,
<T as ArchivePointee>::ArchivedMetadata: Send,
impl<T: ?Sized> Sync for ArchivedRc<T> where
T: Sync,
<T as ArchivePointee>::ArchivedMetadata: Sync,
impl<T> !Unpin for ArchivedRc<T>
impl<T: ?Sized> UnwindSafe for ArchivedRc<T> where
T: UnwindSafe,
<T as ArchivePointee>::ArchivedMetadata: UnwindSafe,
Blanket Implementations
type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Converts some archived metadata to the pointer metadata for itself.
Mutably borrows from an owned value. Read more