flâneur

From in std::convert - Rust

doc.rust-lang.org · 9,083 words · saved by 1 readers

Used to do value-to-value conversions while consuming the input value. It is the reciprocal of [`Into`].

From in std::convert - Rust Skip to main content This old browser is unsupported and will most likely display funky things. From std :: convert Trait From Copy item path 1.0.0 (const: unstable ) · Source pub trait From<T>: Sized { // Required method fn from (value: T) -> Self; } Expand description Used to do value-to-value conversions while consuming the input value. It is the reciprocal of Into . One should always prefer implementing From over Into because implementing From automatically provides one with an implementation of Into thanks to the blanket implementation in the standard library.

related reading