Struct frunk_core::indices::MappingIndicesWrapper
source · pub struct MappingIndicesWrapper<T>(/* private fields */);
Expand description
Index type wrapper for transmogrifying through a (known) container (e.g. Vec
).
Trait Implementations§
source§impl<Key, Source, Target, InnerIndices> Transmogrifier<Box<Target>, MappingIndicesWrapper<InnerIndices>> for Field<Key, Box<Source>>where
Source: Transmogrifier<Target, InnerIndices>,
impl<Key, Source, Target, InnerIndices> Transmogrifier<Box<Target>, MappingIndicesWrapper<InnerIndices>> for Field<Key, Box<Source>>where Source: Transmogrifier<Target, InnerIndices>,
Implementation of Transmogrifier
that maps over an Box
in a Field
, transmogrifying the
contained element on the way past.
source§fn transmogrify(self) -> Box<Target>
fn transmogrify(self) -> Box<Target>
Consume this current object and return an object of the Target type. Read more
source§impl<Key, Source, Target, InnerIndices> Transmogrifier<LinkedList<Target>, MappingIndicesWrapper<InnerIndices>> for Field<Key, LinkedList<Source>>where
Source: Transmogrifier<Target, InnerIndices>,
impl<Key, Source, Target, InnerIndices> Transmogrifier<LinkedList<Target>, MappingIndicesWrapper<InnerIndices>> for Field<Key, LinkedList<Source>>where Source: Transmogrifier<Target, InnerIndices>,
Implementation of Transmogrifier
that maps over a $container
in a Field
, transmogrifying the
elements on the way past.
source§fn transmogrify(self) -> LinkedList<Target>
fn transmogrify(self) -> LinkedList<Target>
Consume this current object and return an object of the Target type. Read more
source§impl<Key, Source, Target, InnerIndices> Transmogrifier<Option<Target>, MappingIndicesWrapper<InnerIndices>> for Field<Key, Option<Source>>where
Source: Transmogrifier<Target, InnerIndices>,
impl<Key, Source, Target, InnerIndices> Transmogrifier<Option<Target>, MappingIndicesWrapper<InnerIndices>> for Field<Key, Option<Source>>where Source: Transmogrifier<Target, InnerIndices>,
Implementation of Transmogrifier
that maps over an Option
in a Field
, transmogrifying the
contained element on the way past if present.
source§fn transmogrify(self) -> Option<Target>
fn transmogrify(self) -> Option<Target>
Consume this current object and return an object of the Target type. Read more
source§impl<Key, Source, Target, InnerIndices> Transmogrifier<Vec<Target>, MappingIndicesWrapper<InnerIndices>> for Field<Key, Vec<Source>>where
Source: Transmogrifier<Target, InnerIndices>,
impl<Key, Source, Target, InnerIndices> Transmogrifier<Vec<Target>, MappingIndicesWrapper<InnerIndices>> for Field<Key, Vec<Source>>where Source: Transmogrifier<Target, InnerIndices>,
Implementation of Transmogrifier
that maps over a $container
in a Field
, transmogrifying the
elements on the way past.
source§fn transmogrify(self) -> Vec<Target>
fn transmogrify(self) -> Vec<Target>
Consume this current object and return an object of the Target type. Read more
source§impl<Key, Source, Target, InnerIndices> Transmogrifier<VecDeque<Target>, MappingIndicesWrapper<InnerIndices>> for Field<Key, VecDeque<Source>>where
Source: Transmogrifier<Target, InnerIndices>,
impl<Key, Source, Target, InnerIndices> Transmogrifier<VecDeque<Target>, MappingIndicesWrapper<InnerIndices>> for Field<Key, VecDeque<Source>>where Source: Transmogrifier<Target, InnerIndices>,
Implementation of Transmogrifier
that maps over a $container
in a Field
, transmogrifying the
elements on the way past.
source§fn transmogrify(self) -> VecDeque<Target>
fn transmogrify(self) -> VecDeque<Target>
Consume this current object and return an object of the Target type. Read more
Auto Trait Implementations§
impl<T> RefUnwindSafe for MappingIndicesWrapper<T>where T: RefUnwindSafe,
impl<T> Send for MappingIndicesWrapper<T>where T: Send,
impl<T> Sync for MappingIndicesWrapper<T>where T: Sync,
impl<T> Unpin for MappingIndicesWrapper<T>where T: Unpin,
impl<T> UnwindSafe for MappingIndicesWrapper<T>where T: UnwindSafe,
Blanket Implementations§
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