pub trait View {
type V;
// Required method
spec fn view(&self) -> Self::V;
}
Expand description
Types used in executable code can implement View to provide a mathematical abstraction of the type. For example, Vec implements a view method that returns a Seq. For base types like bool and u8, the view V of the type is the type itself. Types only used in ghost code, such as int, nat, and Seq, do not need to implement View.
Required Associated Types§
Required Methods§
Implementations on Foreign Types§
source§impl View for DefaultHasher
impl View for DefaultHasher
Implementors§
source§impl View for CheckedU16
impl View for CheckedU16
The view of an $cty
instance is the true value of the instance.
source§impl View for CheckedU32
impl View for CheckedU32
The view of an $cty
instance is the true value of the instance.
source§impl View for CheckedU64
impl View for CheckedU64
The view of an $cty
instance is the true value of the instance.
source§impl View for CheckedU128
impl View for CheckedU128
The view of an $cty
instance is the true value of the instance.
source§impl View for CheckedUsize
impl View for CheckedUsize
The view of an $cty
instance is the true value of the instance.