pub struct RootDirs { /* private fields */ }Available on crate feature
alloc and crate feature sync and (crate features alloc or read) only.Expand description
Represents RootDirs.
Implementations§
Source§impl RootDirs
impl RootDirs
Sourcepub fn is_empty(&self) -> bool
pub fn is_empty(&self) -> bool
Returns whether the image contains no directory-tree namespaces.
Sourcepub fn iter(&self) -> Iter<'_, RootDir> ⓘ
pub fn iter(&self) -> Iter<'_, RootDir> ⓘ
Iterates over every directory-tree namespace in descriptor order.
Sourcepub fn get(&self, ty: EntryType) -> Option<RootDir>
pub fn get(&self, ty: EntryType) -> Option<RootDir>
Finds the root whose entry type exactly matches ty.
Sourcepub fn try_best_choice(&self) -> Option<RootDir>
pub fn try_best_choice(&self) -> Option<RootDir>
Selects the most useful directory-tree namespace, if one exists.
Sourcepub fn best_choice(&self) -> RootDir
pub fn best_choice(&self) -> RootDir
Selects the most useful directory-tree namespace.
§Panics
Panics if the ISO image contains no directory trees. Use
Self::try_best_choice when handling a potentially empty collection.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RootDirs
impl RefUnwindSafe for RootDirs
impl Send for RootDirs
impl Sync for RootDirs
impl Unpin for RootDirs
impl UnsafeUnpin for RootDirs
impl UnwindSafe for RootDirs
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