pub trait TryExtraInto<I> {
    type Error;

    // Required method
    fn try_into_extra(self) -> Result<I, Self::Error>;
}
Expand description

Owned trait to implement TryInto on foreign types

Required Associated Types§

Required Methods§

source

fn try_into_extra(self) -> Result<I, Self::Error>

Implementations on Foreign Types§

source§

impl<F, I> TryExtraInto<Option<I>> for Option<F>where F: TryInto<I>,

§

type Error = <F as TryInto<I>>::Error

source§

fn try_into_extra(self) -> Result<Option<I>, Self::Error>

source§

impl<F, I> TryExtraInto<Vec<I>> for Vec<F>where F: TryInto<I>,

§

type Error = <F as TryInto<I>>::Error

source§

fn try_into_extra(self) -> Result<Vec<I>, Self::Error>

source§

impl<KI, VI, KF, VF> TryExtraInto<HashMap<KI, VI>> for HashMap<KF, VF>where KI: Eq + Hash, KF: TryInto<KI> + Eq + Hash, <KF as TryInto<KI>>::Error: Error + Send + Sync + 'static, VF: TryInto<VI>, <VF as TryInto<VI>>::Error: Error + Send + Sync + 'static,

§

type Error = Error

source§

fn try_into_extra(self) -> Result<HashMap<KI, VI>, Self::Error>

Implementors§