pub trait TryUnwrapOption {
type T;
// Required method
fn try_unwrap(self) -> Option<Self::T>;
}
Expand description
Trait for implementing try_unwrap()
on the generic Option<T>
type.
pub trait TryUnwrapOption {
type T;
// Required method
fn try_unwrap(self) -> Option<Self::T>;
}
Trait for implementing try_unwrap()
on the generic Option<T>
type.