Trait Validate

Source
pub trait Validate {
    // Required methods
    fn has_shape(self, shape: (usize, usize)) -> Self;
    fn has_cols(self, columns: Vec<&str>) -> Self;
    fn has_length(self, length: Comparison) -> Self;
    fn validate<S>(self, expr: Expr) -> Self;
}

Required Methods§

Source

fn has_shape(self, shape: (usize, usize)) -> Self

Validate the shape of the dataframe

Source

fn has_cols(self, columns: Vec<&str>) -> Self

Validate the columns of the dataframe

Source

fn has_length(self, length: Comparison) -> Self

Validate the length of the dataframe

Source

fn validate<S>(self, expr: Expr) -> Self

Validate the dataframe with an expression

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl Validate for DataFrame

Source§

fn has_shape(self, shape: (usize, usize)) -> Self

Source§

fn has_cols(self, columns: Vec<&str>) -> Self

Source§

fn has_length(self, length: Comparison) -> Self

Source§

fn validate<S>(self, expr: Expr) -> Self

Source§

impl Validate for LazyFrame

Source§

fn has_shape(self, shape: (usize, usize)) -> Self

Source§

fn has_cols(self, columns: Vec<&str>) -> Self

Source§

fn has_length(self, length: Comparison) -> Self

Source§

fn validate<S>(self, expr: Expr) -> Self

Implementors§