vortex_array::elementwise

Trait UnaryFn

Source
pub trait UnaryFn {
    // Required method
    fn unary<I: NativePType, O: NativePType, F: Fn(I) -> O>(
        &self,
        unary_fn: F,
    ) -> VortexResult<Array>;
}

Required Methods§

Source

fn unary<I: NativePType, O: NativePType, F: Fn(I) -> O>( &self, unary_fn: F, ) -> VortexResult<Array>

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.

Implementors§