pub struct DirEntry<'a> { /* private fields */ }
Expand description
An entry representing a directory within the image’s filesystem
Implementations§
Source§impl<'a> DirEntry<'a>
impl<'a> DirEntry<'a>
pub fn is_dir(&self) -> bool
pub fn is_file(&self) -> bool
pub fn entry_name(&self) -> &'a str
pub fn iter_dir(&self) -> Option<impl Iterator<Item = DirEntry<'a>> + 'a>
pub fn get_child(&self, child_name: &str) -> Option<DirEntry<'a>>
pub fn as_file(&self) -> Option<File>
Trait Implementations§
impl<'a> Copy for DirEntry<'a>
Auto Trait Implementations§
impl<'a> Freeze for DirEntry<'a>
impl<'a> RefUnwindSafe for DirEntry<'a>
impl<'a> Send for DirEntry<'a>
impl<'a> Sync for DirEntry<'a>
impl<'a> Unpin for DirEntry<'a>
impl<'a> UnwindSafe for DirEntry<'a>
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