pub struct RomFsDirectoryIterator<R: Read + Seek> { /* private fields */ }
Expand description
A RomFS directory iterator
Implementations§
Source§impl<R: Read + Seek> RomFsDirectoryIterator<R>
impl<R: Read + Seek> RomFsDirectoryIterator<R>
Sourcepub fn next_dir(&mut self) -> Option<Result<String, Error>>
pub fn next_dir(&mut self) -> Option<Result<String, Error>>
Returns the next directory name or None if there are no more directories
Sourcepub fn next_file(&mut self) -> Option<Result<(String, u64), Error>>
pub fn next_file(&mut self) -> Option<Result<(String, u64), Error>>
Returns the next file name and size or None if there are no more files
Sourcepub fn file_count(&self) -> usize
pub fn file_count(&self) -> usize
Returns the number of files in this iterator
Auto Trait Implementations§
impl<R> Freeze for RomFsDirectoryIterator<R>
impl<R> RefUnwindSafe for RomFsDirectoryIterator<R>
impl<R> Send for RomFsDirectoryIterator<R>where
R: Send,
impl<R> Sync for RomFsDirectoryIterator<R>where
R: Send,
impl<R> Unpin for RomFsDirectoryIterator<R>
impl<R> UnwindSafe for RomFsDirectoryIterator<R>
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