mirror of
https://github.com/alrayyes/wiki.git
synced 2024-11-21 19:16:23 +00:00
472 B
472 B
date | id | title |
---|---|---|
2020-11-19 | 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>,