Crate jpreprocess_window
source ·Expand description
An iterator-like object which returns contiguous windows containing five mutable references.
§Example
use jpreprocess_window::*;
let mut vector = [0, 1, 2, 3, 4];
let mut iter = IterQuintMut::new(&mut vector);
assert_eq!(iter.next().unwrap(), Quintuple::First(&mut 0, &mut 1, &mut 2, &mut 3));
assert_eq!(iter.next().unwrap(), Quintuple::Full(&mut 0, &mut 1, &mut 2, &mut 3, &mut 4));
assert_eq!(iter.next().unwrap(), Quintuple::ThreeLeft(&mut 1, &mut 2, &mut 3, &mut 4));
assert_eq!(iter.next().unwrap(), Quintuple::TwoLeft(&mut 2, &mut 3, &mut 4));
assert_eq!(iter.next().unwrap(), Quintuple::Last(&mut 3, &mut 4));
Re-exports§
pub use structures::*;