pub trait ExecSpecOptionUnwrap<'a>: Sized + DeepView {
type Elem: DeepView + DeepViewClone;
// Required methods
spec fn is_some_spec(&self) -> bool;
exec fn exec_unwrap(self) -> Self::Elem;
}Expand description
Traits for Option methods
Spec for executable version of Option::unwrap.
Required Associated Types§
type Elem: DeepView + DeepViewClone
Required Methods§
Sourcespec fn is_some_spec(&self) -> bool
spec fn is_some_spec(&self) -> bool
Sourceexec fn exec_unwrap(self) -> Self::Elem
exec fn exec_unwrap(self) -> Self::Elem
requires
self.is_some_spec(),Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
Source§impl<'a, T> ExecSpecOptionUnwrap<'a> for &'a Option<T>where
T: DeepView + DeepViewClone,
Impls for Option methods
impl<'a, T> ExecSpecOptionUnwrap<'a> for &'a Option<T>where
T: DeepView + DeepViewClone,
Impls for Option methods