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