pub trait ExecSpecMemContents<'a>: Sized + DeepView {
type Elem: DeepView + DeepViewClone;
// Required methods
spec fn is_init_spec(&self) -> bool;
exec fn exec_is_init(self) -> bool;
exec fn exec_is_uninit(self) -> bool;
exec fn exec_value(self) -> Self::Elem;
}Expand description
Traits for MemContents methods
Spec for executable versions of MemContents::is_init,
MemContents::is_uninit, and MemContents::value.
Required Associated Types§
type Elem: DeepView + DeepViewClone
Required Methods§
Sourcespec fn is_init_spec(&self) -> bool
spec fn is_init_spec(&self) -> bool
Sourceexec fn exec_is_init(self) -> bool
exec fn exec_is_init(self) -> bool
Sourceexec fn exec_is_uninit(self) -> bool
exec fn exec_is_uninit(self) -> bool
Sourceexec fn exec_value(self) -> Self::Elem
exec fn exec_value(self) -> Self::Elem
requires
self.is_init_spec(),Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementors§
Source§impl<'a, T> ExecSpecMemContents<'a> for &'a ExecMemContents<T>where
T: DeepView + DeepViewClone,
Impls for MemContents methods
impl<'a, T> ExecSpecMemContents<'a> for &'a ExecMemContents<T>where
T: DeepView + DeepViewClone,
Impls for MemContents methods