pub trait EntryReader {
type RE<'a>: ReadEntry
where Self: 'a;
// Required methods
fn read_next(&mut self) -> Option<Self::RE<'_>>;
fn read_len(&self) -> usize;
// Provided methods
fn read_iter(&mut self) -> ReadEntryIter<'_, Self> ⓘ
where Self: Sized { ... }
fn read_entries(
self,
tx: impl FnMut(NamedEntry) -> Result<()>,
blacklist: &TypeBlacklist,
) -> Result<()>
where Self: Sized { ... }
}Expand description
Reads entries from a file-based system. Typically used with EntrySaver.
Required Associated Types§
Required Methods§
Provided Methods§
Sourcefn read_iter(&mut self) -> ReadEntryIter<'_, Self> ⓘwhere
Self: Sized,
fn read_iter(&mut self) -> ReadEntryIter<'_, Self> ⓘwhere
Self: Sized,
Creates an iterator for reading entries.
Sourcefn read_entries(
self,
tx: impl FnMut(NamedEntry) -> Result<()>,
blacklist: &TypeBlacklist,
) -> Result<()>where
Self: Sized,
fn read_entries(
self,
tx: impl FnMut(NamedEntry) -> Result<()>,
blacklist: &TypeBlacklist,
) -> Result<()>where
Self: Sized,
Reads entries, checks if they are not blacklisted and sends them via tx.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.