pub trait TensorType: Sealed {
type H;
// Required methods
fn owned() -> bool;
fn host() -> bool;
// Provided methods
fn borrowed() -> bool { ... }
fn device() -> bool { ... }
}
Expand description
A trait to represent the type of a tensor
Required Associated Types§
Required Methods§
Provided Methods§
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.