pub struct AsBox;
Expand description
Trait Implementations
sourceimpl<F: ArchiveUnsized + ?Sized> ArchiveWith<F> for AsBox
impl<F: ArchiveUnsized + ?Sized> ArchiveWith<F> for AsBox
type Archived = ArchivedBox<<F as ArchiveUnsized>::Archived>
type Archived = ArchivedBox<<F as ArchiveUnsized>::Archived>
The archived type of a With<F, Self>
.
type Resolver = BoxResolver<<F as ArchiveUnsized>::MetadataResolver>
type Resolver = BoxResolver<<F as ArchiveUnsized>::MetadataResolver>
The resolver of a With<F, Self>
.
sourceimpl<F: Archive, D: Fallible + ?Sized> DeserializeWith<ArchivedBox<<F as Archive>::Archived>, F, D> for AsBox where
F::Archived: Deserialize<F, D>,
impl<F: Archive, D: Fallible + ?Sized> DeserializeWith<ArchivedBox<<F as Archive>::Archived>, F, D> for AsBox where
F::Archived: Deserialize<F, D>,
sourcefn 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.
sourceimpl<F: SerializeUnsized<S> + ?Sized, S: Fallible + ?Sized> SerializeWith<F, S> for AsBox
impl<F: SerializeUnsized<S> + ?Sized, S: Fallible + ?Sized> SerializeWith<F, S> for AsBox
Auto Trait Implementations
impl RefUnwindSafe for AsBox
impl Send for AsBox
impl Sync for AsBox
impl Unpin for AsBox
impl UnwindSafe for AsBox
Blanket Implementations
sourceimpl<T> ArchivePointee for T
impl<T> ArchivePointee for T
type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
sourcefn 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.
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more