Trait tfrecord::record::Record

source ·
pub trait Recordwhere
    Self: Sized,{
    // Required methods
    fn from_bytes(bytes: Vec<u8>) -> Result<Self, Error>;
    fn to_bytes(record: Self) -> Result<Vec<u8>, Error>;
}
Expand description

Mark types the is serailized to or deserialized from TFRecord format.

Required Methods§

source

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

Deserialze from bytes in TFRecord format.

source

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

Serialze to bytes in TFRecord format.

Implementations on Foreign Types§

source§

impl Record for Vec<u8>

source§

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

source§

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

Implementors§