Struct model_mapper::with::TryIntoMapper
source · pub struct TryIntoMapper;Expand description
Mapper that uses the TryInto trait
Trait Implementations§
source§impl<F, I> TypeFallibleMapper<F, I> for TryIntoMapperwhere
F: TryInto<I>,
impl<F, I> TypeFallibleMapper<F, I> for TryIntoMapperwhere
F: TryInto<I>,
type Error = <F as TryInto<I>>::Error
source§fn try_map_wrapped<W>(
from: W,
) -> Result<<W as Wrapper<F>>::Wrapper<I>, Self::Error>where
W: Wrapper<F>,
fn try_map_wrapped<W>(
from: W,
) -> Result<<W as Wrapper<F>>::Wrapper<I>, Self::Error>where
W: Wrapper<F>,
Maps between Wrapper types
source§fn try_map_nested_wrapped<NW, W>(
from: NW,
) -> Result<<NW as NestedWrapper<W, F>>::NestedWrapper<I>, Self::Error>where
NW: NestedWrapper<W, F>,
W: Wrapper<F>,
fn try_map_nested_wrapped<NW, W>(
from: NW,
) -> Result<<NW as NestedWrapper<W, F>>::NestedWrapper<I>, Self::Error>where
NW: NestedWrapper<W, F>,
W: Wrapper<F>,
Maps between Wrapper types
source§fn try_map_into_option<E>(from: F) -> Result<Option<I>, Self::Error>
fn try_map_into_option<E>(from: F) -> Result<Option<I>, Self::Error>
Maps encapsulating into an Option
source§fn try_map_wrapped_into_option<W>(
from: W,
) -> Result<Option<<W as Wrapper<F>>::Wrapper<I>>, Self::Error>where
W: Wrapper<F>,
fn try_map_wrapped_into_option<W>(
from: W,
) -> Result<Option<<W as Wrapper<F>>::Wrapper<I>>, Self::Error>where
W: Wrapper<F>,
source§fn try_map_nested_wrapped_into_option<NW, W>(
from: NW,
) -> Result<Option<<NW as NestedWrapper<W, F>>::NestedWrapper<I>>, Self::Error>where
NW: NestedWrapper<W, F>,
W: Wrapper<F>,
fn try_map_nested_wrapped_into_option<NW, W>(
from: NW,
) -> Result<Option<<NW as NestedWrapper<W, F>>::NestedWrapper<I>>, Self::Error>where
NW: NestedWrapper<W, F>,
W: Wrapper<F>,
Auto Trait Implementations§
impl Freeze for TryIntoMapper
impl RefUnwindSafe for TryIntoMapper
impl Send for TryIntoMapper
impl Sync for TryIntoMapper
impl Unpin for TryIntoMapper
impl UnwindSafe for TryIntoMapper
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