pub trait TensorElement: Sized {
    const ELEMENT_TYPE: ElementType;

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

A Rust type that can be used as the element of a tensor.

This is an internal implementation detail and you shouldn’t need to refer to it directly.

Associated Constants

Required methods

Reinterpret a slice of this TensorElement as an immutable byte array.

Reinterpret a slice of this TensorElement as a mutable byte array.

Implementations on Foreign Types

Implementors