pub trait OptionNodeResultExt<T> {
// Required methods
fn unwrap2(self) -> T;
fn expect2(self, message: impl AsRef<str>) -> T;
fn flatten(self) -> Option<T>;
}Expand description
Useful trait to unwrap an Option<NodeResult<'tree, T>>
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.