pub trait View {
type ViewTy;
// Required method
fn view(self) -> Self::ViewTy;
}Expand description
The view of a type is its logical model as typically used to specify a data
structure. It is typically “shallow”, and does not involve the model of
other types contained by the datastructure.
This kind of model is mostly useful for notation purposes,
because this trait is linked to the @ notation of pearlite.
Required Associated Types§
Required Methods§
Implementations on Foreign Types§
Source§impl<'a, T: DeepModel, S> View for Difference<'a, T, S>
impl<'a, T: DeepModel, S> View for Difference<'a, T, S>
Source§impl<'a, T: DeepModel, S> View for Intersection<'a, T, S>
impl<'a, T: DeepModel, S> View for Intersection<'a, T, S>
Source§impl<T: View + ?Sized, A: Allocator> View for Box<T, A>
Available on crate feature nightly only.
impl<T: View + ?Sized, A: Allocator> View for Box<T, A>
Available on crate feature
nightly only.