pub trait IntoTensor<D: Device, K: DTypeKind<D>> {
// Required methods
fn shape(&self) -> Result<Shape>;
fn into_storage(self, device: &D) -> Result<K::Storage>;
}Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".