pub trait NewElementType {
// Required method
fn new_element_type(other: &Self, t: &Type) -> Self;
}
Expand description
Copies the shape of the given Shaped type, returning a new Shaped type with the element type given. The resulting multi-dimensional Shaped type will be of the same type as the Shaped type given (e.g., fn(tensor<10xi32>, f32) -> tensor<10xf32>).
Required Methods§
fn new_element_type(other: &Self, t: &Type) -> 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.