pub struct CompressedTrainingDataEntryReader { /* private fields */ }Expand description
Reads Stockfish binpacks and returns a TrainingDataEntry for each encoded entry.
Implementations§
Source§impl CompressedTrainingDataEntryReader
impl CompressedTrainingDataEntryReader
Sourcepub fn new(path: &str) -> Result<Self, CompressedReaderError>
pub fn new(path: &str) -> Result<Self, CompressedReaderError>
Create a new CompressedTrainingDataEntryReader, reading from the file at the given path.
Sourcepub fn read_bytes(&self) -> u64
pub fn read_bytes(&self) -> u64
Get how much of the file has been read so far
Sourcepub fn next(&mut self) -> TrainingDataEntry
pub fn next(&mut self) -> TrainingDataEntry
Get the next TrainingDataEntry
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CompressedTrainingDataEntryReader
impl RefUnwindSafe for CompressedTrainingDataEntryReader
impl Send for CompressedTrainingDataEntryReader
impl Sync for CompressedTrainingDataEntryReader
impl Unpin for CompressedTrainingDataEntryReader
impl UnwindSafe for CompressedTrainingDataEntryReader
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