Struct cell_map::iterators::slicers::Windows [−][src]
pub struct Windows { /* fields omitted */ }Expand description
A Slicer which produces rectangular views into a layer in (x, y) order, increasing x
most rapidly. A boundary of the semi_width of the window around the outside edge of the map
is used to prevent indexing outside the map.
Trait Implementations
type Output = ArrayView2<'a, T>
type Output = ArrayView2<'a, T>The non-mutable output type for the data of this Slicer.
type OutputMut = ArrayViewMut2<'a, T>
type OutputMut = ArrayViewMut2<'a, T>The mutable output type for the data of this Slicer.
Perform the slice on the given data layer, or None if the slicer has reached the end of
its data. Read more
Perform a mutable slice on the given data layer, or None if the slicer has reached the
end of its data. Read more
Auto Trait Implementations
impl RefUnwindSafe for Windowsimpl UnwindSafe for WindowsBlanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = TShould always be Self
The inverse inclusion map: attempts to construct self from the equivalent element of its
superset. Read more
pub fn is_in_subset(&self) -> bool
pub fn is_in_subset(&self) -> boolChecks if self is actually part of its subset T (and can be converted to it).
pub fn to_subset_unchecked(&self) -> SS
pub fn to_subset_unchecked(&self) -> SSUse with care! Same as self.to_subset but without any property checks. Always succeeds.
pub fn from_subset(element: &SS) -> SP
pub fn from_subset(element: &SS) -> SPThe inclusion map: converts self to the equivalent element of its superset.