Trait ha_ndarray::Constant
source · pub trait Constant<T: CType>: PlatformInstance {
type Buffer: BufferInstance<T>;
// Required method
fn constant(&self, value: T, size: usize) -> Result<Self::Buffer, Error>;
}
Expand description
Constructor for a new buffer filled with a single value
Required Associated Types§
sourcetype Buffer: BufferInstance<T>
type Buffer: BufferInstance<T>
The type of buffer use by this platform
Required Methods§
Object Safety§
This trait is not object safe.