pub trait ExactFrom<T>: Sized {
    // Required method
    fn exact_from(value: T) -> Self;
}
Expand description

Converts a value from one type to another. If the conversion fails, the function panics.

It is recommended that this trait is not implemented directly; it is automatically implemented when TryFrom is implemented.

Required Methods§

source

fn exact_from(value: T) -> Self

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<T, U: TryFrom<T>> ExactFrom<T> for U