pub struct ArchivedBox<T: ArchivePointee + ?Sized> { /* private fields */ }
Expand description
Implementations§
Source§impl<T: ArchivePointee + ?Sized> ArchivedBox<T>
impl<T: ArchivePointee + ?Sized> ArchivedBox<T>
Sourcepub fn get_seal(this: Seal<'_, Self>) -> Seal<'_, T>
pub fn get_seal(this: Seal<'_, Self>) -> Seal<'_, T>
Returns a sealed mutable reference to the value of this archived box.
Sourcepub fn resolve_from_ref<U: ArchiveUnsized<Archived = T> + ?Sized>(
value: &U,
resolver: BoxResolver,
out: Place<Self>,
)
pub fn resolve_from_ref<U: ArchiveUnsized<Archived = T> + ?Sized>( value: &U, resolver: BoxResolver, out: Place<Self>, )
Resolves an archived box from the given value and parameters.
Sourcepub fn serialize_from_ref<U, S>(
value: &U,
serializer: &mut S,
) -> Result<BoxResolver, S::Error>
pub fn serialize_from_ref<U, S>( value: &U, serializer: &mut S, ) -> Result<BoxResolver, S::Error>
Serializes an archived box from the given value and serializer.
Sourcepub fn resolve_from_raw_parts(
resolver: BoxResolver,
metadata: T::ArchivedMetadata,
out: Place<Self>,
)
pub fn resolve_from_raw_parts( resolver: BoxResolver, metadata: T::ArchivedMetadata, out: Place<Self>, )
Resolves an archived box from a BoxResolver
and the raw metadata
directly.
Trait Implementations§
Source§impl<T: ArchivePointee + ?Sized> AsRef<T> for ArchivedBox<T>
impl<T: ArchivePointee + ?Sized> AsRef<T> for ArchivedBox<T>
Source§impl<T: ArchivePointee + ?Sized> Borrow<T> for ArchivedBox<T>
impl<T: ArchivePointee + ?Sized> Borrow<T> for ArchivedBox<T>
Source§impl<T: ArchivePointee + ?Sized, __C: Fallible + ?Sized> CheckBytes<__C> for ArchivedBox<T>
impl<T: ArchivePointee + ?Sized, __C: Fallible + ?Sized> CheckBytes<__C> for ArchivedBox<T>
Source§impl<T: ArchivePointee + ?Sized> Debug for ArchivedBox<T>where
T::ArchivedMetadata: Debug,
impl<T: ArchivePointee + ?Sized> Debug for ArchivedBox<T>where
T::ArchivedMetadata: Debug,
Source§impl<T: ArchivePointee + ?Sized> Deref for ArchivedBox<T>
impl<T: ArchivePointee + ?Sized> Deref for ArchivedBox<T>
Source§impl<T, D> Deserialize<Box<T>, D> for ArchivedBox<T::Archived>where
T: ArchiveUnsized + LayoutRaw + ?Sized,
T::Archived: DeserializeUnsized<T, D>,
D: Fallible + ?Sized,
D::Error: Source,
Available on crate feature alloc
only.
impl<T, D> Deserialize<Box<T>, D> for ArchivedBox<T::Archived>where
T: ArchiveUnsized + LayoutRaw + ?Sized,
T::Archived: DeserializeUnsized<T, D>,
D: Fallible + ?Sized,
D::Error: Source,
Available on crate feature
alloc
only.Source§impl<F, D> DeserializeWith<ArchivedBox<<F as Archive>::Archived>, F, D> for AsBox
impl<F, D> DeserializeWith<ArchivedBox<<F as Archive>::Archived>, F, D> for AsBox
Source§fn deserialize_with(
field: &ArchivedBox<F::Archived>,
deserializer: &mut D,
) -> Result<F, D::Error>
fn deserialize_with( field: &ArchivedBox<F::Archived>, deserializer: &mut D, ) -> Result<F, D::Error>
Deserializes the field type
F
using the given deserializer.Source§impl<T: ArchivePointee + Display + ?Sized> Display for ArchivedBox<T>
impl<T: ArchivePointee + Display + ?Sized> Display for ArchivedBox<T>
Source§impl<T: ArchivePointee + Hash + ?Sized> Hash for ArchivedBox<T>
impl<T: ArchivePointee + Hash + ?Sized> Hash for ArchivedBox<T>
Source§impl<T> Niching<ArchivedBox<T>> for DefaultNiche
impl<T> Niching<ArchivedBox<T>> for DefaultNiche
Source§unsafe fn is_niched(niched: *const ArchivedBox<T>) -> bool
unsafe fn is_niched(niched: *const ArchivedBox<T>) -> bool
Returns whether the given value has been niched. Read more
Source§fn resolve_niched(out: Place<ArchivedBox<T>>)
fn resolve_niched(out: Place<ArchivedBox<T>>)
Writes data to
out
indicating that a T
is niched.Source§impl<T> Niching<ArchivedBox<T>> for Null
impl<T> Niching<ArchivedBox<T>> for Null
Source§unsafe fn is_niched(niched: *const ArchivedBox<T>) -> bool
unsafe fn is_niched(niched: *const ArchivedBox<T>) -> bool
Returns whether the given value has been niched. Read more
Source§fn resolve_niched(out: Place<ArchivedBox<T>>)
fn resolve_niched(out: Place<ArchivedBox<T>>)
Writes data to
out
indicating that a T
is niched.Source§impl<T: ArchivePointee + Ord + ?Sized> Ord for ArchivedBox<T>
impl<T: ArchivePointee + Ord + ?Sized> Ord for ArchivedBox<T>
Source§impl<T: ArchivePointee + PartialEq<U> + ?Sized, U: ArchivePointee + ?Sized> PartialEq<ArchivedBox<U>> for ArchivedBox<T>
impl<T: ArchivePointee + PartialEq<U> + ?Sized, U: ArchivePointee + ?Sized> PartialEq<ArchivedBox<U>> for ArchivedBox<T>
Source§impl<T, U> PartialEq<Box<U>> for ArchivedBox<T>
Available on crate feature alloc
only.
impl<T, U> PartialEq<Box<U>> for ArchivedBox<T>
Available on crate feature
alloc
only.Source§impl<T, U> PartialOrd<Box<U>> for ArchivedBox<T>
Available on crate feature alloc
only.
impl<T, U> PartialOrd<Box<U>> for ArchivedBox<T>
Available on crate feature
alloc
only.Source§impl<T: ArchivePointee + PartialOrd + ?Sized> PartialOrd for ArchivedBox<T>
impl<T: ArchivePointee + PartialOrd + ?Sized> PartialOrd for ArchivedBox<T>
Source§impl<T: ArchivePointee + ?Sized> Pointer for ArchivedBox<T>
impl<T: ArchivePointee + ?Sized> Pointer for ArchivedBox<T>
Source§impl<T, C> Verify<C> for ArchivedBox<T>where
T: ArchivePointee + CheckBytes<C> + LayoutRaw + ?Sized,
T::ArchivedMetadata: CheckBytes<C>,
C: Fallible + ArchiveContext + ?Sized,
C::Error: Source,
Available on crate feature bytecheck
only.
impl<T, C> Verify<C> for ArchivedBox<T>where
T: ArchivePointee + CheckBytes<C> + LayoutRaw + ?Sized,
T::ArchivedMetadata: CheckBytes<C>,
C: Fallible + ArchiveContext + ?Sized,
C::Error: Source,
Available on crate feature
bytecheck
only.impl<T: ArchivePointee + Eq + ?Sized> Eq for ArchivedBox<T>
impl<T: ArchivePointee + ?Sized> Portable for ArchivedBox<T>
Auto Trait Implementations§
impl<T> Freeze for ArchivedBox<T>
impl<T> RefUnwindSafe for ArchivedBox<T>
impl<T> Send for ArchivedBox<T>
impl<T> Sync for ArchivedBox<T>
impl<T> !Unpin for ArchivedBox<T>
impl<T> UnwindSafe for ArchivedBox<T>
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§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> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.
Source§impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
Source§unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
Returns whether the given value has been niched. Read more
Source§fn resolve_niched(out: Place<NichedOption<T, N1>>)
fn resolve_niched(out: Place<NichedOption<T, N1>>)
Writes data to
out
indicating that a T
is niched.