Skip to main content

PolarsContext

Trait PolarsContext 

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§

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

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", so this trait is not object safe.

Implementations on Foreign Types§

§

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

§

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

§

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

Implementors§