pub trait OptionIndexed<'value> {
type Value;
// Required methods
fn index(&self) -> Option<usize>;
fn value(&self) -> Option<&'value Self::Value>;
}Expand description
Split an Option<Indexed<'a, Value>> into its index (Option<usize>) or value (Option<&Value>).
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".