Trait tea_map::MapValidBasic

source ·
pub trait MapValidBasic<T: IsNone>: TrustedLen<Item = T> + Sized {
Show 13 methods // Provided methods fn vabs(self) -> impl TrustedLen<Item = T> where T::Inner: Number { ... } fn ffill_mask<F: Fn(&T) -> bool>( self, mask_func: F, value: Option<T>, ) -> impl TrustedLen<Item = T> { ... } fn ffill(self, value: Option<T>) -> impl TrustedLen<Item = T> { ... } fn bfill_mask<F: Fn(&T) -> bool>( self, mask_func: F, value: Option<T>, ) -> impl TrustedLen<Item = T> where Self: DoubleEndedIterator<Item = T> { ... } fn bfill(self, value: Option<T>) -> impl TrustedLen<Item = T> where Self: DoubleEndedIterator<Item = T> { ... } fn vclip<'a>(self, lower: T, upper: T) -> Box<dyn TrustedLen<Item = T> + 'a> where T::Inner: PartialOrd, T: 'a, Self: 'a { ... } fn fill_mask<F: Fn(&T) -> bool>( self, mask_func: F, value: T, ) -> impl TrustedLen<Item = T> { ... } fn fill(self, value: T) -> impl TrustedLen<Item = T> { ... } fn vshift<'a>( self, n: i32, value: Option<T>, ) -> Box<dyn TrustedLen<Item = T> + 'a> where T: Clone + 'a, Self: 'a { ... } fn drop_none(self) -> impl Iterator<Item = T> { ... } fn vcut<'a, V2, V3, T2>( self, bins: &'a V2, labels: &'a V3, right: bool, add_bounds: bool, ) -> TResult<Box<dyn TrustedLen<Item = TResult<T2>> + 'a>> where Self: 'a, T::Inner: Number + Debug, (T::Inner, T::Inner): HomogeneousTuple<Item = T::Inner>, T2: IsNone + 'a, V2: Vec1View<T>, V3: Vec1View<T2> { ... } fn vsorted_unique_idx<'a>( self, keep: Keep, ) -> Box<dyn Iterator<Item = usize> + 'a> where T::Inner: PartialEq + 'a + Debug, Self: 'a { ... } fn vsorted_unique<'a>(self) -> impl Iterator<Item = T> + 'a where T::Inner: PartialEq + 'a, Self: 'a { ... }
}

Provided Methods§

source

fn vabs(self) -> impl TrustedLen<Item = T>
where T::Inner: Number,

source

fn ffill_mask<F: Fn(&T) -> bool>( self, mask_func: F, value: Option<T>, ) -> impl TrustedLen<Item = T>

Forward fill value where the mask is true value: value to fill if head values are still none after forward fill

source

fn ffill(self, value: Option<T>) -> impl TrustedLen<Item = T>

Forward fill value value: value to fill if head values are still none after forward fill

source

fn bfill_mask<F: Fn(&T) -> bool>( self, mask_func: F, value: Option<T>, ) -> impl TrustedLen<Item = T>
where Self: DoubleEndedIterator<Item = T>,

Backward fill value where the mask is true value: value to fill if tails values are still none after backward fill

source

fn bfill(self, value: Option<T>) -> impl TrustedLen<Item = T>
where Self: DoubleEndedIterator<Item = T>,

Backward fill value value: value to fill if tails values are still none after backward fill

source

fn vclip<'a>(self, lower: T, upper: T) -> Box<dyn TrustedLen<Item = T> + 'a>
where T::Inner: PartialOrd, T: 'a, Self: 'a,

source

fn fill_mask<F: Fn(&T) -> bool>( self, mask_func: F, value: T, ) -> impl TrustedLen<Item = T>

Fill value where the mask is true

source

fn fill(self, value: T) -> impl TrustedLen<Item = T>

Fill value where T is none

source

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

source

fn drop_none(self) -> impl Iterator<Item = T>

source

fn vcut<'a, V2, V3, T2>( self, bins: &'a V2, labels: &'a V3, right: bool, add_bounds: bool, ) -> TResult<Box<dyn TrustedLen<Item = TResult<T2>> + 'a>>
where Self: 'a, T::Inner: Number + Debug, (T::Inner, T::Inner): HomogeneousTuple<Item = T::Inner>, T2: IsNone + 'a, V2: Vec1View<T>, V3: Vec1View<T2>,

source

fn vsorted_unique_idx<'a>( self, keep: Keep, ) -> Box<dyn Iterator<Item = usize> + 'a>
where T::Inner: PartialEq + 'a + Debug, Self: 'a,

source

fn vsorted_unique<'a>(self) -> impl Iterator<Item = T> + 'a
where T::Inner: PartialEq + 'a, Self: 'a,

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<T: IsNone, I: TrustedLen<Item = T>> MapValidBasic<T> for I