pub struct Reverse {
pub rows: bool,
pub columns: bool,
}Expand description
Helper struct for declaring which of rows and columns should be reversed for iteration.
If a dimension is set to false it will iterate in its normal order. If a dimension is
set to true the iteration order will be reversed, so the first index 0 becomes the last
length-1, and the last index length-1 becomes 0
Fields§
§rows: bool§columns: boolTrait Implementations§
impl Copy for Reverse
impl Eq for Reverse
impl StructuralPartialEq for Reverse
Auto Trait Implementations§
impl Freeze for Reverse
impl RefUnwindSafe for Reverse
impl Send for Reverse
impl Sync for Reverse
impl Unpin for Reverse
impl UnwindSafe for Reverse
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more