Trait tfrecord::markers::GenericRecord[][src]

pub trait GenericRecord where
    Self: Sized
{ fn from_bytes(bytes: Vec<u8>) -> Result<Self, Error>;
fn to_bytes(record: Self) -> Result<Vec<u8>, Error>; }

The trait marks the type that can be serailized to or deserialized from TFRecord raw bytes.

Required methods

fn from_bytes(bytes: Vec<u8>) -> Result<Self, Error>[src]

fn to_bytes(record: Self) -> Result<Vec<u8>, Error>[src]

Loading content...

Implementations on Foreign Types

impl GenericRecord for Vec<u8>[src]

Loading content...

Implementors

impl GenericRecord for Event[src]

impl GenericRecord for RawExample[src]

impl GenericRecord for Example[src]

Loading content...