Struct cdragon_prop::BinEntryScanner
source · pub struct BinEntryScanner<R: Read> {
pub is_patch: bool,
/* private fields */
}
Expand description
Scan entries from a bin file
Fields§
§is_patch: bool
true
if scanning a patch
See PropFile::is_patch for details.
Implementations§
source§impl<R: Read> BinEntryScanner<R>
impl<R: Read> BinEntryScanner<R>
sourcepub fn new(reader: R) -> Result<Self, ParseError>
pub fn new(reader: R) -> Result<Self, ParseError>
Create a scanner, parse the headers
sourcepub fn scan(self) -> BinEntryScanScan<R>
pub fn scan(self) -> BinEntryScanScan<R>
Scan entries, allow to parse or skip each entry
The result behaves provides next()
but is not an Iterator
.
sourcepub fn filter_parse<F>(self, f: F) -> BinEntryScanFilterParse<R, F>
pub fn filter_parse<F>(self, f: F) -> BinEntryScanFilterParse<R, F>
Scan entries, parse filtered ones
Trait Implementations§
Auto Trait Implementations§
impl<R> RefUnwindSafe for BinEntryScanner<R>where
R: RefUnwindSafe,
impl<R> Send for BinEntryScanner<R>where
R: Send,
impl<R> Sync for BinEntryScanner<R>where
R: Sync,
impl<R> Unpin for BinEntryScanner<R>where
R: Unpin,
impl<R> UnwindSafe for BinEntryScanner<R>where
R: 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