pub trait DeviceCreationNumAPI<T>where
T: Num,
Self: DeviceRawAPI<T>,{
// Required methods
fn zeros_impl(
&self,
len: usize,
) -> Result<Storage<DataOwned<Self::Raw>, T, Self>>;
fn ones_impl(
&self,
len: usize,
) -> Result<Storage<DataOwned<Self::Raw>, T, Self>>;
fn arange_int_impl(
&self,
len: usize,
) -> Result<Storage<DataOwned<Self::Raw>, T, Self>>;
}
Required Methods§
fn zeros_impl( &self, len: usize, ) -> Result<Storage<DataOwned<Self::Raw>, T, Self>>
fn ones_impl( &self, len: usize, ) -> Result<Storage<DataOwned<Self::Raw>, T, Self>>
fn arange_int_impl( &self, len: usize, ) -> Result<Storage<DataOwned<Self::Raw>, T, Self>>
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.