Trait TensorFillAPI

Source
pub trait TensorFillAPI<T> {
    // Required method
    fn fill_f(a: &mut Self, b: T) -> Result<()>;

    // Provided method
    fn fill(a: &mut Self, b: T) { ... }
}

Required Methods§

Source

fn fill_f(a: &mut Self, b: T) -> Result<()>

Provided Methods§

Source

fn fill(a: &mut Self, b: T)

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§

Source§

impl<RA, DA, T, B> TensorFillAPI<T> for TensorAny<RA, T, B, DA>
where RA: DataMutAPI<Data = B::Raw>, DA: DimAPI, B: DeviceAPI<T> + OpAssignAPI<T, DA>,