pub trait Nullable<T> {
// Required method
fn into_option(self) -> Option<T>;
}Expand description
Abstracts over Option<T> and Vec<T>
Required Methods§
Sourcefn into_option(self) -> Option<T>
fn into_option(self) -> Option<T>
Converts this value into an Option.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".