Struct model_mapper::with::ToStringMapper
source · pub struct ToStringMapper;Expand description
Maps from any type to its display string
Trait Implementations§
source§impl<T: ToString> TypeMapper<T, String> for ToStringMapper
impl<T: ToString> TypeMapper<T, String> for ToStringMapper
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 ToStringMapper
impl RefUnwindSafe for ToStringMapper
impl Send for ToStringMapper
impl Sync for ToStringMapper
impl Unpin for ToStringMapper
impl UnwindSafe for ToStringMapper
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