[][src]Trait yoloxide::types::SlidingWindow

pub trait SlidingWindow<'a> {
    type Value;
    fn get_value(&self, index: usize) -> Option<&Self::Value>;
fn get_window(&self, view_size: usize) -> Option<&[Self::Value]>;
fn remaining_length(&self) -> usize;
fn move_view(&mut self, distance: isize) -> usize; }

Associated Types

type Value

Loading content...

Required methods

fn get_value(&self, index: usize) -> Option<&Self::Value>

fn get_window(&self, view_size: usize) -> Option<&[Self::Value]>

fn remaining_length(&self) -> usize

fn move_view(&mut self, distance: isize) -> usize

Loading content...

Implementors

impl<'a, T> SlidingWindow<'a> for VecWindow<'a, T>[src]

type Value = T

Loading content...