/// Convenient trait to convert to `Option<T>`.
/// `IntoOption<T> for F` is automatically implemented
/// if `TryInto<T> for F` is implemented.
pubtraitIntoOption<T> {fninto_option(self)->Option<T>;}impl<T, F>IntoOption<T>forFwhere
T:TryFrom<F>,
{fninto_option(self)->Option<T>{self.try_into().ok()}}