1 2 3 4 5 6 7 8 9
//! Custom conversion traits. /// Custom conversion trait. /// /// Mirrors [`std::convert::From`] but is used when `std` trait cannot be. pub trait From<T>: Sized { /// Create an instance of the type from another type `T`. fn from(value: T) -> Self; }