Trait tea_map::MapValidVec

source ·
pub trait MapValidVec<T: IsNone>: Vec1View<T> {
    // Provided methods
    fn vdiff<'a>(
        &'a self,
        n: i32,
        value: Option<T>,
    ) -> Box<dyn TrustedLen<Item = T> + 'a>
       where T: Clone + Sub<Output = T> + Zero + 'a,
             Self: 'a { ... }
    fn vpct_change<'a>(&'a self, n: i32) -> Box<dyn TrustedLen<Item = f64> + 'a>
       where T: Clone + Cast<f64> + 'a,
             Self: 'a { ... }
    fn vrank<O: Vec1<OT>, OT: IsNone>(&self, pct: bool, rev: bool) -> O
       where T: IsNone + PartialEq,
             T::Inner: PartialOrd,
             f64: Cast<OT> { ... }
    fn varg_partition<'a>(
        &'a self,
        kth: usize,
        sort: bool,
        rev: bool,
    ) -> Box<dyn TrustedLen<Item = i32> + 'a>
       where T::Inner: Number,
             T: 'a { ... }
    fn vpartition<'a>(
        &'a self,
        kth: usize,
        sort: bool,
        rev: bool,
    ) -> Box<dyn TrustedLen<Item = T> + 'a>
       where T::Inner: PartialOrd,
             T: 'a { ... }
}

Provided Methods§

source

fn vdiff<'a>( &'a self, n: i32, value: Option<T>, ) -> Box<dyn TrustedLen<Item = T> + 'a>
where T: Clone + Sub<Output = T> + Zero + 'a, Self: 'a,

source

fn vpct_change<'a>(&'a self, n: i32) -> Box<dyn TrustedLen<Item = f64> + 'a>
where T: Clone + Cast<f64> + 'a, Self: 'a,

source

fn vrank<O: Vec1<OT>, OT: IsNone>(&self, pct: bool, rev: bool) -> O
where T: IsNone + PartialEq, T::Inner: PartialOrd, f64: Cast<OT>,

source

fn varg_partition<'a>( &'a self, kth: usize, sort: bool, rev: bool, ) -> Box<dyn TrustedLen<Item = i32> + 'a>
where T::Inner: Number, T: 'a,

return -1 if there are not enough valid elements sort: whether to sort the result by the size of the element

source

fn vpartition<'a>( &'a self, kth: usize, sort: bool, rev: bool, ) -> Box<dyn TrustedLen<Item = T> + 'a>
where T::Inner: PartialOrd, T: 'a,

sort: whether to sort the result by the size of the element

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<T: IsNone, I: Vec1View<T>> MapValidVec<T> for I