Struct model_mapper::with::IntoMapper
source · pub struct IntoMapper;Expand description
Mapper that uses the Into trait
Trait Implementations§
source§impl<F, I> TypeMapper<F, I> for IntoMapperwhere
F: Into<I>,
impl<F, I> TypeMapper<F, I> for IntoMapperwhere
F: Into<I>,
source§fn map_wrapped<W>(from: W) -> <W as Wrapper<F>>::Wrapper<I>where
W: Wrapper<F>,
fn map_wrapped<W>(from: W) -> <W as Wrapper<F>>::Wrapper<I>where
W: Wrapper<F>,
Maps between Wrapper types
source§fn try_map_wrapped<W>(
from: W,
) -> Result<<W as Wrapper<F>>::Wrapper<I>, Infallible>where
W: Wrapper<F>,
fn try_map_wrapped<W>(
from: W,
) -> Result<<W as Wrapper<F>>::Wrapper<I>, Infallible>where
W: Wrapper<F>,
Maps between Wrapper types
source§fn map_nested_wrapped<NW, W>(
from: NW,
) -> <NW as NestedWrapper<W, F>>::NestedWrapper<I>where
NW: NestedWrapper<W, F>,
W: Wrapper<F>,
fn map_nested_wrapped<NW, W>(
from: NW,
) -> <NW as NestedWrapper<W, F>>::NestedWrapper<I>where
NW: NestedWrapper<W, F>,
W: Wrapper<F>,
Maps between Wrapper types
source§fn try_map_nested_wrapped<NW, W, E>(
from: NW,
) -> Result<<NW as NestedWrapper<W, F>>::NestedWrapper<I>, Infallible>where
NW: NestedWrapper<W, F>,
W: Wrapper<F>,
fn try_map_nested_wrapped<NW, W, E>(
from: NW,
) -> Result<<NW as NestedWrapper<W, F>>::NestedWrapper<I>, Infallible>where
NW: NestedWrapper<W, F>,
W: Wrapper<F>,
Maps between Wrapper types
source§fn map_into_option(from: F) -> Option<I>
fn map_into_option(from: F) -> Option<I>
Maps encapsulating into an Option
source§fn try_map_into_option<E>(from: F) -> Result<Option<I>, Infallible>
fn try_map_into_option<E>(from: F) -> Result<Option<I>, Infallible>
Maps encapsulating into an Option
source§fn map_wrapped_into_option<W>(from: W) -> Option<<W as Wrapper<F>>::Wrapper<I>>where
W: Wrapper<F>,
fn map_wrapped_into_option<W>(from: W) -> Option<<W as Wrapper<F>>::Wrapper<I>>where
W: Wrapper<F>,
source§fn try_map_wrapped_into_option<W, E>(
from: W,
) -> Result<Option<<W as Wrapper<F>>::Wrapper<I>>, Infallible>where
W: Wrapper<F>,
fn try_map_wrapped_into_option<W, E>(
from: W,
) -> Result<Option<<W as Wrapper<F>>::Wrapper<I>>, Infallible>where
W: Wrapper<F>,
source§fn map_nested_wrapped_into_option<NW, W>(
from: NW,
) -> Option<<NW as NestedWrapper<W, F>>::NestedWrapper<I>>where
NW: NestedWrapper<W, F>,
W: Wrapper<F>,
fn map_nested_wrapped_into_option<NW, W>(
from: NW,
) -> Option<<NW as NestedWrapper<W, F>>::NestedWrapper<I>>where
NW: NestedWrapper<W, F>,
W: Wrapper<F>,
source§fn try_map_nested_wrapped_into_option<NW, W, Infallible>(
from: NW,
) -> Result<Option<<NW as NestedWrapper<W, F>>::NestedWrapper<I>>, Infallible>where
NW: NestedWrapper<W, F>,
W: Wrapper<F>,
fn try_map_nested_wrapped_into_option<NW, W, Infallible>(
from: NW,
) -> Result<Option<<NW as NestedWrapper<W, F>>::NestedWrapper<I>>, Infallible>where
NW: NestedWrapper<W, F>,
W: Wrapper<F>,
source§fn try_map_wrapped_removing_option<W>(
from: Option<W>,
) -> Result<<W as Wrapper<F>>::Wrapper<I>, Error>where
W: Wrapper<F>,
fn try_map_wrapped_removing_option<W>(
from: Option<W>,
) -> Result<<W as Wrapper<F>>::Wrapper<I>, Error>where
W: Wrapper<F>,
Maps a wrapped type removing an Option
source§fn try_map_nested_wrapped_removing_option<NW, W>(
from: Option<NW>,
) -> Result<<NW as NestedWrapper<W, F>>::NestedWrapper<I>, Error>where
NW: NestedWrapper<W, F>,
W: Wrapper<F>,
fn try_map_nested_wrapped_removing_option<NW, W>(
from: Option<NW>,
) -> Result<<NW as NestedWrapper<W, F>>::NestedWrapper<I>, Error>where
NW: NestedWrapper<W, F>,
W: Wrapper<F>,
Maps a nested wrapped type removing an Option
Auto Trait Implementations§
impl Freeze for IntoMapper
impl RefUnwindSafe for IntoMapper
impl Send for IntoMapper
impl Sync for IntoMapper
impl Unpin for IntoMapper
impl UnwindSafe for IntoMapper
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