polars_lazy::dsl

Trait RenameAliasFn

pub trait RenameAliasFn: Send + Sync {
    // Required method
    fn call(&self, name: &PlSmallStr) -> Result<PlSmallStr, PolarsError>;

    // Provided method
    fn try_serialize(&self, _buf: &mut Vec<u8>) -> Result<(), PolarsError> { ... }
}

Required Methods§

fn call(&self, name: &PlSmallStr) -> Result<PlSmallStr, PolarsError>

Provided Methods§

fn try_serialize(&self, _buf: &mut Vec<u8>) -> Result<(), PolarsError>

Trait Implementations§

§

impl Debug for dyn RenameAliasFn

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Implementors§

§

impl<F> RenameAliasFn for F
where F: Fn(&PlSmallStr) -> Result<PlSmallStr, PolarsError> + Send + Sync,