pub struct AsBox;
Expand description
Trait Implementations§
source§impl<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>
.source§impl<F: Archive, D: Fallible + ?Sized> DeserializeWith<ArchivedBox<<F as Archive>::Archived>, F, D> for AsBoxwhere
F::Archived: Deserialize<F, D>,
impl<F: Archive, D: Fallible + ?Sized> DeserializeWith<ArchivedBox<<F as Archive>::Archived>, F, D> for AsBoxwhere F::Archived: Deserialize<F, D>,
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.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§
source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§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<F, W, T, D> Deserialize<With<T, W>, D> for Fwhere
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
impl<F, W, T, D> Deserialize<With<T, W>, D> for Fwhere W: DeserializeWith<F, T, D>, D: Fallible + ?Sized, F: ?Sized,
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>
Gets the layout of the type.