diffusion_rs_common::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>

Object Safety§

This trait is not object safe.

Implementors§