pub trait To {
fn to<T>(self) -> T
where
Self: Into<T>,
{ ... }
}
Extension trait providing the to
method.
fn to<T>(self) -> T where
Self: Into<T>,
[src]
Converts to T
by calling Into<T>::into
.
Loading content...
Blanket impl for all types.
This makes sure that everything implements To
and
that no downstream impls can exist.
Loading content...