Trait View
views
pub trait View<T>: AsRef<[T]> { fn take(&mut self, n: usize) -> Result<&[T], BadPos>; }
fn take(&mut self, n: usize) -> Result<&[T], BadPos>
impl<T> View<T> for &[T]
impl<T> View<T> for &mut [T]
impl<T, B: AsRef<[T]>> View<T> for Look<T, B>