Trait MetaLoad

Source
pub trait MetaLoad: Sized {
    type Output;

    // Required method
    fn load(&self, file: &mut File) -> Result<Self::Output>;
}

Required Associated Types§

Required Methods§

Source

fn load(&self, file: &mut File) -> Result<Self::Output>

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 MetaLoad for bool

Source§

type Output = bool

Source§

fn load(&self, _: &mut File) -> Result<Self::Output>

Source§

impl MetaLoad for f32

Source§

type Output = f32

Source§

fn load(&self, _: &mut File) -> Result<Self::Output>

Source§

impl MetaLoad for f64

Source§

type Output = f64

Source§

fn load(&self, _: &mut File) -> Result<Self::Output>

Source§

impl MetaLoad for i8

Source§

type Output = i8

Source§

fn load(&self, _: &mut File) -> Result<Self::Output>

Source§

impl MetaLoad for i16

Source§

type Output = i16

Source§

fn load(&self, _: &mut File) -> Result<Self::Output>

Source§

impl MetaLoad for i32

Source§

type Output = i32

Source§

fn load(&self, _: &mut File) -> Result<Self::Output>

Source§

impl MetaLoad for i64

Source§

type Output = i64

Source§

fn load(&self, _: &mut File) -> Result<Self::Output>

Source§

impl MetaLoad for isize

Source§

type Output = isize

Source§

fn load(&self, _: &mut File) -> Result<Self::Output>

Source§

impl MetaLoad for u8

Source§

type Output = u8

Source§

fn load(&self, _: &mut File) -> Result<Self::Output>

Source§

impl MetaLoad for u16

Source§

type Output = u16

Source§

fn load(&self, _: &mut File) -> Result<Self::Output>

Source§

impl MetaLoad for u32

Source§

type Output = u32

Source§

fn load(&self, _: &mut File) -> Result<Self::Output>

Source§

impl MetaLoad for u64

Source§

type Output = u64

Source§

fn load(&self, _: &mut File) -> Result<Self::Output>

Source§

impl MetaLoad for usize

Source§

type Output = usize

Source§

fn load(&self, _: &mut File) -> Result<Self::Output>

Source§

impl MetaLoad for String

Source§

type Output = String

Source§

fn load(&self, _: &mut File) -> Result<Self::Output>

Source§

impl MetaLoad for Shape

Source§

type Output = Shape

Source§

fn load(&self, _: &mut File) -> Result<Self::Output>

Source§

impl<T> MetaLoad for PhantomData<T>

Source§

type Output = PhantomData<T>

Source§

fn load(&self, _: &mut File) -> Result<Self::Output>

Source§

impl<T: MetaLoad> MetaLoad for Option<T>

Source§

type Output = Option<<T as MetaLoad>::Output>

Source§

fn load(&self, file: &mut File) -> Result<Self::Output>

Source§

impl<T: MetaLoad> MetaLoad for Vec<T>

Source§

type Output = Vec<<T as MetaLoad>::Output>

Source§

fn load(&self, file: &mut File) -> Result<Self::Output>

Source§

impl<T: MetaLoad, const N: usize> MetaLoad for [T; N]

Source§

type Output = [<T as MetaLoad>::Output; N]

Source§

fn load(&self, file: &mut File) -> Result<Self::Output>

Implementors§

Source§

impl<T: CommonBounds + FromBytes<Bytes = [u8; N]>, B: CPUTensorCreator<T>, const N: usize> MetaLoad for TensorMeta<T, B>
where <B as CPUTensorCreator<T>>::Output: Clone + TensorInfo<T> + Display + Into<B>,