pub trait View: Sized {
type Item;
type View: View;
// Required methods
fn region(&self) -> Region;
fn get(&self, rank: usize) -> Option<Self::Item>;
fn subset(&self, region: Region) -> Result<Self::View, ViewError>;
}Expand description
A View is a collection of items in a space indexed by a Region.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".