Trait ElementPrecision

Source
pub trait ElementPrecision {
    // Required method
    fn precision() -> Precision;
}
Expand description

Element precision trait for tensor.

Required Methods§

Source

fn precision() -> Precision

Returns the precision of the element.

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.

Implementations on Foreign Types§

Source§

impl ElementPrecision for bool

Source§

impl ElementPrecision for f32

Source§

impl ElementPrecision for f64

Source§

impl ElementPrecision for i8

Source§

impl ElementPrecision for i16

Source§

impl ElementPrecision for i32

Source§

impl ElementPrecision for i64

Source§

impl ElementPrecision for u8

Source§

impl ElementPrecision for u16

Source§

impl ElementPrecision for u32

Source§

impl ElementPrecision for u64

Implementors§