wiki/content/20201119171245-tryinto.md

470 B

date id title
20201119 ab615a6d-64d5-49a4-824e-a02889a05a8f 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