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