convert.rs 246 Bytes EditWeb IDE 1 2 3 4 5 6 7 8 9 10 11 12 //! Basic type conversion traits. Unlike the native standard library, `U: From<T>` does not yet //! imply `T: Into<U>`. use super::*; pub trait From<T>: Sized { fn from(_: T) -> Self; } pub trait Into<T>: Sized { fn from(self) -> T; }