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§
fn vabs(self) -> impl TrustedLen<Item = T>
sourcefn ffill_mask<F: Fn(&T) -> bool>(
self,
mask_func: F,
value: Option<T>,
) -> impl TrustedLen<Item = T>
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
sourcefn ffill(self, value: Option<T>) -> impl TrustedLen<Item = T>
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
sourcefn bfill_mask<F: Fn(&T) -> bool>(
self,
mask_func: F,
value: Option<T>,
) -> impl TrustedLen<Item = T>where
Self: DoubleEndedIterator<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>,
Backward fill value where the mask is true value: value to fill if tails values are still none after backward fill
sourcefn bfill(self, 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>,
Backward fill value value: value to fill if tails values are still none after backward fill
fn vclip<'a>(self, lower: T, upper: T) -> Box<dyn TrustedLen<Item = T> + 'a>where
T::Inner: PartialOrd,
T: 'a,
Self: 'a,
sourcefn fill_mask<F: Fn(&T) -> bool>(
self,
mask_func: F,
value: T,
) -> impl TrustedLen<Item = T>
fn fill_mask<F: Fn(&T) -> bool>( self, mask_func: F, value: T, ) -> impl TrustedLen<Item = T>
Fill value where the mask is true
sourcefn fill(self, value: T) -> impl TrustedLen<Item = T>
fn fill(self, value: T) -> impl TrustedLen<Item = T>
Fill value where T is none
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>>
fn vsorted_unique_idx<'a>( self, keep: Keep, ) -> Box<dyn Iterator<Item = usize> + 'a>
fn vsorted_unique<'a>(self) -> impl Iterator<Item = T> + 'a
Object Safety§
This trait is not object safe.