pub trait OptionExt {
type Val;
// Required method
fn then<F>(self, f: F)
where F: FnOnce(Self::Val);
}Expand description
Extension for std::option::Option.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".