pub trait IntoOption<T> {
// Required method
fn into_option(self) -> Option<T>;
}Expand description
A helper trait that is just like Into<Option<T>> but improves ergonomics by allowing
implicit conversion from &[T; N] to &[T].
Required Methods§
Sourcefn into_option(self) -> Option<T>
fn into_option(self) -> Option<T>
Convert into an Option.