std_dev::percentile::pivot_fn

Trait SliceSubset

source
pub trait SliceSubset<T> {
    // Required methods
    fn len(&self) -> usize;
    fn get(&self, idx: usize) -> Option<&T>;

    // Provided method
    fn is_empty(&self) -> bool { ... }
}

Required Methods§

source

fn len(&self) -> usize

source

fn get(&self, idx: usize) -> Option<&T>

Returns None if idx >= Self::len.

Provided Methods§

source

fn is_empty(&self) -> bool

Implementations on Foreign Types§

source§

impl<T> SliceSubset<T> for &[T]

source§

fn len(&self) -> usize

source§

fn get(&self, idx: usize) -> Option<&T>

</