pub trait TensorElement: Sealed + Copy + 'static {
    const ELEMENT_TYPE: ElementType;

    fn to_bytes(slice: &[Self]) -> &[u8]Notable traits for &'_ [u8]impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8];
fn from_bytes(bytes: &[u8]) -> Option<&[Self]>; }
Expand description

A numeric type that can be stored in a Tensor.

Associated Constants

Required methods

Implementations on Foreign Types

Implementors