[−][src]Trait safecast::CastFrom
Trait for defining a cast operation from some source type T
.
Analogous to std::convert::From
.
The inverse of CastInto
.
Prefer implementing CastFrom
over CastInto
because implementing CastFrom
automatically
provides an implementation of CastInto
.