Trait peroxide::structure::dataframe::TypedVector

source ·
pub trait TypedVector<T> {
Show 15 methods // Required methods fn new(v: Vec<T>) -> Self; fn to_vec(&self) -> Vec<T>; fn as_slice(&self) -> &[T]; fn as_slice_mut(&mut self) -> &mut [T]; fn at_raw(&self, i: usize) -> T; fn push(&mut self, elem: T); fn map<F: Fn(T) -> T>(&self, f: F) -> Self; fn mut_map<F: Fn(&mut T)>(&mut self, f: F); fn fold<F: Fn(T, T) -> T>(&self, init: T, f: F) -> T; fn filter<F: Fn(&T) -> bool>(&self, f: F) -> Self; fn take(&self, n: usize) -> Self; fn skip(&self, n: usize) -> Self; fn take_while<F: Fn(&T) -> bool>(&self, f: F) -> Self; fn skip_while<F: Fn(&T) -> bool>(&self, f: F) -> Self; fn zip_with<F: Fn(T, T) -> T>(&self, f: F, other: &Self) -> Self;
}

Required Methods§

source

fn new(v: Vec<T>) -> Self

source

fn to_vec(&self) -> Vec<T>

source

fn as_slice(&self) -> &[T]

source

fn as_slice_mut(&mut self) -> &mut [T]

source

fn at_raw(&self, i: usize) -> T

source

fn push(&mut self, elem: T)

source

fn map<F: Fn(T) -> T>(&self, f: F) -> Self

source

fn mut_map<F: Fn(&mut T)>(&mut self, f: F)

source

fn fold<F: Fn(T, T) -> T>(&self, init: T, f: F) -> T

source

fn filter<F: Fn(&T) -> bool>(&self, f: F) -> Self

source

fn take(&self, n: usize) -> Self

source

fn skip(&self, n: usize) -> Self

source

fn take_while<F: Fn(&T) -> bool>(&self, f: F) -> Self

source

fn skip_while<F: Fn(&T) -> bool>(&self, f: F) -> Self

source

fn zip_with<F: Fn(T, T) -> T>(&self, f: F, other: &Self) -> Self

Object Safety§

This trait is not object safe.

Implementors§