pub trait LiftFrom<T, I> {
// Required method
fn lift_from(part: T) -> Self;
}Expand description
Indexed type conversions of T -> Self with index I.
This is a generalized version of From which for example allows the caller
to use default values for parts of Self and thus “fill in the blanks”.
LiftFrom is the reciprocal of LiftInto.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.