pub struct Directory<'a> { /* private fields */ }
Expand description
Directory.
Implementations
sourceimpl<'a> Directory<'a>
impl<'a> Directory<'a>
sourcepub fn get_data(&self, name: Name<'_>) -> Result<DataEntry<'a>, FindError>
pub fn get_data(&self, name: Name<'_>) -> Result<DataEntry<'a>, FindError>
Looks up the data entry by name.
sourcepub fn get_dir(&self, name: Name<'_>) -> Result<Directory<'a>, FindError>
pub fn get_dir(&self, name: Name<'_>) -> Result<Directory<'a>, FindError>
Looks up the directory by name.
sourcepub fn first_data(&self) -> Result<DataEntry<'a>, FindError>
pub fn first_data(&self) -> Result<DataEntry<'a>, FindError>
Gets the first data entry.
sourceimpl<'a> Directory<'a>
impl<'a> Directory<'a>
sourceimpl<'a> Directory<'a>
impl<'a> Directory<'a>
sourcepub fn image(&self) -> &'a IMAGE_RESOURCE_DIRECTORY
pub fn image(&self) -> &'a IMAGE_RESOURCE_DIRECTORY
Gets the underlying resource directory image.
sourcepub fn entries(
&self
) -> Entries<'a, impl Clone + FnMut(&'a IMAGE_RESOURCE_DIRECTORY_ENTRY) -> DirectoryEntry<'a>>
pub fn entries(
&self
) -> Entries<'a, impl Clone + FnMut(&'a IMAGE_RESOURCE_DIRECTORY_ENTRY) -> DirectoryEntry<'a>>
Gets the directory entries.
sourcepub fn named_entries(
&self
) -> Entries<'a, impl Clone + FnMut(&'a IMAGE_RESOURCE_DIRECTORY_ENTRY) -> DirectoryEntry<'a>>
pub fn named_entries(
&self
) -> Entries<'a, impl Clone + FnMut(&'a IMAGE_RESOURCE_DIRECTORY_ENTRY) -> DirectoryEntry<'a>>
Gets the named entries in this directory.
Note that while it would be a violation of the format spec, there’s no strict safety guarantee that these are only named entries.
sourcepub fn id_entries(
&self
) -> Entries<'a, impl Clone + FnMut(&'a IMAGE_RESOURCE_DIRECTORY_ENTRY) -> DirectoryEntry<'a>>
pub fn id_entries(
&self
) -> Entries<'a, impl Clone + FnMut(&'a IMAGE_RESOURCE_DIRECTORY_ENTRY) -> DirectoryEntry<'a>>
Gets the id entries in this directory.
Note that while it would be a violation of the format spec, there’s no strict safety guarantee that these are only id entries.
Trait Implementations
impl<'a> Copy for Directory<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for Directory<'a>
impl<'a> Send for Directory<'a>
impl<'a> Sync for Directory<'a>
impl<'a> Unpin for Directory<'a>
impl<'a> UnwindSafe for Directory<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more