pub trait IntoOption<T> {
// Required method
fn into_option(self) -> Option<T>;
}Expand description
Utility trait for builder methods for optional values.
This allows the caller to either pass in the value itself without wrapping it in Some,
or to just pass in an Option if that is what they have.