Trait to_method::To [−][src]
pub trait To { fn to<T>(self) -> T
where
Self: Into<T>, { ... } fn try_to<T>(self) -> Result<T, Self::Error>
where
Self: TryInto<T>, { ... } }
Provided methods
fn to<T>(self) -> T where
Self: Into<T>,
[src]
Self: Into<T>,
Expand description
Converts to T
by calling Into<T>::into
.
fn try_to<T>(self) -> Result<T, Self::Error> where
Self: TryInto<T>,
[src]
Self: TryInto<T>,
Expand description
Tries to convert to T
by calling TryInto<T>::try_into
.