Struct burn_core::record::BinBytesRecorder
source · pub struct BinBytesRecorder<S: PrecisionSettings> { /* private fields */ }Expand description
In memory recorder using the bincode format.
Implementations§
source§impl<S: PrecisionSettings> BinBytesRecorder<S>
impl<S: PrecisionSettings> BinBytesRecorder<S>
Trait Implementations§
source§impl<S: Clone + PrecisionSettings> Clone for BinBytesRecorder<S>
impl<S: Clone + PrecisionSettings> Clone for BinBytesRecorder<S>
source§fn clone(&self) -> BinBytesRecorder<S>
fn clone(&self) -> BinBytesRecorder<S>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl<S: Debug + PrecisionSettings> Debug for BinBytesRecorder<S>
impl<S: Debug + PrecisionSettings> Debug for BinBytesRecorder<S>
source§impl<S: Default + PrecisionSettings> Default for BinBytesRecorder<S>
impl<S: Default + PrecisionSettings> Default for BinBytesRecorder<S>
source§fn default() -> BinBytesRecorder<S>
fn default() -> BinBytesRecorder<S>
Returns the “default value” for a type. Read more
source§impl<S: PrecisionSettings, B: Backend> Recorder<B> for BinBytesRecorder<S>
impl<S: PrecisionSettings, B: Backend> Recorder<B> for BinBytesRecorder<S>
§type RecordArgs = ()
type RecordArgs = ()
Arguments used to record objects.
§type RecordOutput = Vec<u8>
type RecordOutput = Vec<u8>
Record output type.
source§fn save_item<I: Serialize>(
&self,
item: I,
_args: Self::RecordArgs
) -> Result<Self::RecordOutput, RecorderError>
fn save_item<I: Serialize>( &self, item: I, _args: Self::RecordArgs ) -> Result<Self::RecordOutput, RecorderError>
Saves an item. Read more
source§fn load_item<I: DeserializeOwned>(
&self,
args: Self::LoadArgs
) -> Result<I, RecorderError>
fn load_item<I: DeserializeOwned>( &self, args: Self::LoadArgs ) -> Result<I, RecorderError>
Loads an item. Read more
source§fn record<R>(
&self,
record: R,
args: Self::RecordArgs
) -> Result<Self::RecordOutput, RecorderError>where
R: Record<B>,
fn record<R>(
&self,
record: R,
args: Self::RecordArgs
) -> Result<Self::RecordOutput, RecorderError>where
R: Record<B>,
Records an item. Read more
impl<S: PrecisionSettings, B: Backend> BytesRecorder<B> for BinBytesRecorder<S>
Auto Trait Implementations§
impl<S> RefUnwindSafe for BinBytesRecorder<S>where
S: RefUnwindSafe,
impl<S> Send for BinBytesRecorder<S>
impl<S> Sync for BinBytesRecorder<S>
impl<S> Unpin for BinBytesRecorder<S>where
S: Unpin,
impl<S> UnwindSafe for BinBytesRecorder<S>where
S: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more