candle_core::cpu_backend

Trait Map1Any

Source
pub trait Map1Any {
    // Required method
    fn f<T: WithDType, W: Fn(Vec<T>) -> CpuStorage>(
        &self,
        vs: &[T],
        layout: &Layout,
        wrap: W,
    ) -> Result<CpuStorage>;

    // Provided method
    fn map(&self, vs: &CpuStorage, layout: &Layout) -> Result<CpuStorage> { ... }
}

Required Methods§

Source

fn f<T: WithDType, W: Fn(Vec<T>) -> CpuStorage>( &self, vs: &[T], layout: &Layout, wrap: W, ) -> Result<CpuStorage>

Provided Methods§

Source

fn map(&self, vs: &CpuStorage, layout: &Layout) -> Result<CpuStorage>

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§