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, B: Backend> FileRecorder<B> for BinFileRecorder<S>
impl<S: PrecisionSettings, B: Backend> FileRecorder<B> 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, B: Backend> Recorder<B> for BinFileRecorder<S>
impl<S: PrecisionSettings, B: Backend> Recorder<B> 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>(
&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
Auto Trait Implementations§
impl<S> Freeze for BinFileRecorder<S>
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().