Struct microkelvin::MappedBranch
source ·
[−]pub struct MappedBranch<'a, C, A, I, M> where
C: Compound<A, I>,
C::Leaf: Archive,
M: 'a, { /* fields omitted */ }
Expand description
A branch that applies a map to its leaf
Implementations
impl<'a, C, A, I, M> MappedBranch<'a, C, A, I, M> where
C: Compound<A, I>,
C::Archived: ArchivedCompound<C, A, I>,
C::Leaf: Archive,
impl<'a, C, A, I, M> MappedBranch<'a, C, A, I, M> where
C: Compound<A, I>,
C::Archived: ArchivedCompound<C, A, I>,
C::Leaf: Archive,
Trait Implementations
impl<'a, C, A, T, I> BranchRef<'a, T> for MappedBranch<'a, C, A, I, MaybeArchived<'a, T>> where
C: Compound<A, I>,
C::Archived: ArchivedCompound<C, A, I>,
T: Archive,
impl<'a, C, A, T, I> BranchRef<'a, T> for MappedBranch<'a, C, A, I, MaybeArchived<'a, T>> where
C: Compound<A, I>,
C::Archived: ArchivedCompound<C, A, I>,
T: Archive,
Provides a reference to the leaf of the branch
impl<'a, C, A, I, M> IntoIterator for MappedBranch<'a, C, A, I, M> where
C: Compound<A, I>,
C::Archived: ArchivedCompound<C, A, I> + for<'any> CheckBytes<DefaultValidator<'any>>,
C::Leaf: 'a + Archive,
A: Annotation<C::Leaf>,
M: 'a + Archive,
impl<'a, C, A, I, M> IntoIterator for MappedBranch<'a, C, A, I, M> where
C: Compound<A, I>,
C::Archived: ArchivedCompound<C, A, I> + for<'any> CheckBytes<DefaultValidator<'any>>,
C::Leaf: 'a + Archive,
A: Annotation<C::Leaf>,
M: 'a + Archive,
Auto Trait Implementations
impl<'a, C, A, I, M> !RefUnwindSafe for MappedBranch<'a, C, A, I, M>
impl<'a, C, A, I, M> !Send for MappedBranch<'a, C, A, I, M>
impl<'a, C, A, I, M> !Sync for MappedBranch<'a, C, A, I, M>
impl<'a, C, A, I, M> Unpin for MappedBranch<'a, C, A, I, M> where
A: Unpin,
I: Unpin,
impl<'a, C, A, I, M> !UnwindSafe for MappedBranch<'a, C, A, I, M>
Blanket Implementations
type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
pub fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
pub fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
Mutably borrows from an owned value. Read more
impl<F, W, T, D> Deserialize<With<T, W>, D> for F where
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
impl<F, W, T, D> Deserialize<With<T, W>, D> for F where
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
Gets the layout of the type.