pub enum ResourceDirectoryEntryData<'data> {
Table(ResourceDirectoryTable<'data>),
Data(&'data ImageResourceDataEntry),
}
Expand description
Data associated with a resource directory entry.
Variants
Table(ResourceDirectoryTable<'data>)
A subtable entry.
Data(&'data ImageResourceDataEntry)
A resource data entry.
Implementations
sourceimpl<'data> ResourceDirectoryEntryData<'data>
impl<'data> ResourceDirectoryEntryData<'data>
sourcepub fn table(self) -> Option<ResourceDirectoryTable<'data>>
pub fn table(self) -> Option<ResourceDirectoryTable<'data>>
Converts to an option of table.
Helper for iterator filtering.
sourcepub fn data(self) -> Option<&'data ImageResourceDataEntry>
pub fn data(self) -> Option<&'data ImageResourceDataEntry>
Converts to an option of data entry.
Helper for iterator filtering.
Trait Implementations
sourceimpl<'data> Clone for ResourceDirectoryEntryData<'data>
impl<'data> Clone for ResourceDirectoryEntryData<'data>
sourcefn clone(&self) -> ResourceDirectoryEntryData<'data>
fn clone(&self) -> ResourceDirectoryEntryData<'data>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl<'data> RefUnwindSafe for ResourceDirectoryEntryData<'data>
impl<'data> Send for ResourceDirectoryEntryData<'data>
impl<'data> Sync for ResourceDirectoryEntryData<'data>
impl<'data> Unpin for ResourceDirectoryEntryData<'data>
impl<'data> UnwindSafe for ResourceDirectoryEntryData<'data>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more