Struct model_mapper::with::TryFromStringMapper
source · pub struct TryFromStringMapper;Trait Implementations§
source§impl<F: AsRef<str>, I: FromStr> TypeFallibleMapper<F, I> for TryFromStringMapper
impl<F: AsRef<str>, I: FromStr> TypeFallibleMapper<F, I> for TryFromStringMapper
type Error = <I as FromStr>::Err
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(from: F) -> Result<Option<I>, Self::Error>
fn try_map_into_option(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 TryFromStringMapper
impl RefUnwindSafe for TryFromStringMapper
impl Send for TryFromStringMapper
impl Sync for TryFromStringMapper
impl Unpin for TryFromStringMapper
impl UnwindSafe for TryFromStringMapper
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