Function call_by::from_val [−][src]
pub fn from_val<'a, T: By<'a, Val>>(by_val: T) -> T::Type
Safe, zero-cost cast from T
to <T as By<'a, Val>>::Type
.
Rust’s type system does not always know that T
is <T as By<'a, Val>>::Type
for all 'a
.
This function safely converts from the former to the latter.