pub trait ExecSpecResultArrow<T, E>: Sized {
// Required methods
spec fn is_ok_variant_spec(&self) -> bool;
spec fn is_err_variant_spec(&self) -> bool;
exec fn exec_arrow_Ok_0(&self) -> &T;
exec fn exec_arrow_Err_0(&self) -> &E;
}Required Methods§
Sourcespec fn is_ok_variant_spec(&self) -> bool
spec fn is_ok_variant_spec(&self) -> bool
Sourcespec fn is_err_variant_spec(&self) -> bool
spec fn is_err_variant_spec(&self) -> bool
Sourceexec fn exec_arrow_Ok_0(&self) -> &T
exec fn exec_arrow_Ok_0(&self) -> &T
requires
self.is_ok_variant_spec(),Sourceexec fn exec_arrow_Err_0(&self) -> &E
exec fn exec_arrow_Err_0(&self) -> &E
requires
self.is_err_variant_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<T: DeepView, E: DeepView> ExecSpecResultArrow<T, E> for Result<T, E>
impl<T: DeepView, E: DeepView> ExecSpecResultArrow<T, E> for Result<T, E>
Source§open spec fn is_ok_variant_spec(&self) -> bool
open spec fn is_ok_variant_spec(&self) -> bool
{ *self is Ok }Source§open spec fn is_err_variant_spec(&self) -> bool
open spec fn is_err_variant_spec(&self) -> bool
{ *self is Err }Source§exec fn exec_arrow_Ok_0(&self) -> res : &T
exec fn exec_arrow_Ok_0(&self) -> res : &T
ensures
res.deep_view() == self.deep_view()->Ok_0,Source§exec fn exec_arrow_Err_0(&self) -> res : &E
exec fn exec_arrow_Err_0(&self) -> res : &E
ensures
res.deep_view() == self.deep_view()->Err_0,