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§
fn vdiff<'a>( &'a self, n: i32, value: Option<T>, ) -> Box<dyn TrustedLen<Item = T> + 'a>
fn vpct_change<'a>(&'a self, n: i32) -> Box<dyn TrustedLen<Item = f64> + 'a>
fn vrank<O: Vec1<OT>, OT: IsNone>(&self, pct: bool, rev: bool) -> O
sourcefn varg_partition<'a>(
&'a self,
kth: usize,
sort: bool,
rev: bool,
) -> Box<dyn TrustedLen<Item = i32> + 'a>
fn varg_partition<'a>( &'a self, kth: usize, sort: bool, rev: bool, ) -> Box<dyn TrustedLen<Item = i32> + 'a>
return -1 if there are not enough valid elements sort: whether to sort the result by the size of the element
sourcefn vpartition<'a>(
&'a self,
kth: usize,
sort: bool,
rev: bool,
) -> Box<dyn TrustedLen<Item = T> + 'a>where
T::Inner: PartialOrd,
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,
sort: whether to sort the result by the size of the element
Object Safety§
This trait is not object safe.