StalinFind

Trait StalinFind 

Source
pub trait StalinFind<T> {
    // Required methods
    fn len(&self) -> usize;
    fn is_empty(&self) -> bool;
    fn stalin(&mut self, i: T, l: usize, r: usize) -> Option<usize>
       where T: PartialEq + PartialOrd;

    // Provided method
    fn stalin_find(&mut self, i: T) -> Option<usize>
       where T: PartialEq + PartialOrd { ... }
}

Required Methods§

Source

fn len(&self) -> usize

Source

fn is_empty(&self) -> bool

Source

fn stalin(&mut self, i: T, l: usize, r: usize) -> Option<usize>
where T: PartialEq + PartialOrd,

Provided Methods§

Source

fn stalin_find(&mut self, i: T) -> Option<usize>
where T: PartialEq + PartialOrd,

Implementations on Foreign Types§

Source§

impl<T: PartialOrd> StalinFind<T> for Vec<T>

Source§

fn len(&self) -> usize

Source§

fn is_empty(&self) -> bool

Source§

fn stalin(&mut self, i: T, l: usize, r: usize) -> Option<usize>
where T: PartialEq + PartialOrd,

Implementors§