Skip to main content

PolarsContext

Trait PolarsContext 

Source
pub trait PolarsContext<T> {
    // Required methods
    fn context(self, ctx: &'static str) -> Result<T, PolarsError>;
    fn with_context<F>(self, f: F) -> Result<T, PolarsError>
       where F: FnOnce() -> String;
}

Required Methods§

Source

fn context(self, ctx: &'static str) -> Result<T, PolarsError>

Source

fn with_context<F>(self, f: F) -> Result<T, PolarsError>
where F: FnOnce() -> String,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T> PolarsContext<T> for Result<T, PolarsError>

Source§

fn context(self, ctx: &'static str) -> Result<T, PolarsError>

Source§

fn with_context<F>(self, f: F) -> Result<T, PolarsError>
where F: FnOnce() -> String,

Implementors§