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

Footnotes

  1. https://doc.rust-lang.org/std/convert/trait.TryInto.html