profileRyan KesPGP keyI build stuffEmailGithubTwitterLast.fmMastodonMatrix

TryInto

Description

TryInto1 is an attempted conversion that consumes self, which may or may not be expensive.

Delcaration

pub trait TryInto<T> {
    type Error;
    fn try_into(self) -> Result<T, Self::Error>;
}

Implementors

impl<T, U> TryInto<U> for T
where
    U: TryFrom<T>,

Footnotes