Trait ZerosAPI

Source
pub trait ZerosAPI<Inp>: Sized {
    type Out;

    // Required method
    fn zeros_f(self) -> Result<Self::Out>;

    // Provided method
    fn zeros(self) -> Self::Out { ... }
}

Required Associated Types§

Required Methods§

Source

fn zeros_f(self) -> Result<Self::Out>

Provided Methods§

Source

fn zeros(self) -> Self::Out

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.

Implementations on Foreign Types§

Source§

impl<T, D, B, L> ZerosAPI<(T, D)> for (L, &B)
where T: Num, D: DimAPI, B: DeviceAPI<T> + DeviceCreationNumAPI<T>, L: Into<Layout<D>>,

Source§

type Out = TensorBase<Storage<DataOwned<<B as DeviceRawAPI<T>>::Raw>, T, B>, Vec<usize>>

Source§

fn zeros_f(self) -> Result<Self::Out>

Implementors§

Source§

impl<T, D, L> ZerosAPI<(T, D)> for L
where T: Num + Clone, D: DimAPI, L: Into<Layout<D>>,