Struct burn_core::record::BinFileRecorder
source · pub struct BinFileRecorder<S: PrecisionSettings> { /* private fields */ }Expand description
File recorder using the bincode format.
Implementations§
source§impl<S: PrecisionSettings> BinFileRecorder<S>
impl<S: PrecisionSettings> BinFileRecorder<S>
Trait Implementations§
source§impl<S: Clone + PrecisionSettings> Clone for BinFileRecorder<S>
impl<S: Clone + PrecisionSettings> Clone for BinFileRecorder<S>
source§fn clone(&self) -> BinFileRecorder<S>
fn clone(&self) -> BinFileRecorder<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 BinFileRecorder<S>
impl<S: Debug + PrecisionSettings> Debug for BinFileRecorder<S>
source§impl<S: Default + PrecisionSettings> Default for BinFileRecorder<S>
impl<S: Default + PrecisionSettings> Default for BinFileRecorder<S>
source§fn default() -> BinFileRecorder<S>
fn default() -> BinFileRecorder<S>
Returns the “default value” for a type. Read more
source§impl<S: PrecisionSettings> FileRecorder for BinFileRecorder<S>
impl<S: PrecisionSettings> FileRecorder for BinFileRecorder<S>
source§fn file_extension() -> &'static str
fn file_extension() -> &'static str
File extension of the format used by the recorder.
source§impl<S: PrecisionSettings> Recorder for BinFileRecorder<S>
impl<S: PrecisionSettings> Recorder for BinFileRecorder<S>
§type RecordArgs = PathBuf
type RecordArgs = PathBuf
Arguments used to record objects.
§type RecordOutput = ()
type RecordOutput = ()
Record output type.
source§fn save_item<I: Serialize>(
&self,
item: I,
file: Self::RecordArgs
) -> Result<(), RecorderError>
fn save_item<I: Serialize>( &self, item: I, file: Self::RecordArgs ) -> Result<(), RecorderError>
Saves an item. Read more
source§fn load_item<I: DeserializeOwned>(
&self,
file: Self::LoadArgs
) -> Result<I, RecorderError>
fn load_item<I: DeserializeOwned>( &self, file: Self::LoadArgs ) -> Result<I, RecorderError>
Loads an item. Read more
source§fn record<R: Record>(
&self,
record: R,
args: Self::RecordArgs
) -> Result<Self::RecordOutput, RecorderError>
fn record<R: Record>( &self, record: R, args: Self::RecordArgs ) -> Result<Self::RecordOutput, RecorderError>
Records an item. Read more
Auto Trait Implementations§
impl<S> RefUnwindSafe for BinFileRecorder<S>where S: RefUnwindSafe,
impl<S> Send for BinFileRecorder<S>
impl<S> Sync for BinFileRecorder<S>
impl<S> Unpin for BinFileRecorder<S>where S: Unpin,
impl<S> UnwindSafe for BinFileRecorder<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