Struct exe::types::ResourceNode
source · [−]pub struct ResourceNode<'data> {
pub directory: &'data ImageResourceDirectory,
pub entries: &'data [ImageResourceDirectoryEntry],
}
Expand description
Represents a directory node in the greater resource directory.
Fields
directory: &'data ImageResourceDirectory
entries: &'data [ImageResourceDirectoryEntry]
Implementations
sourceimpl<'data> ResourceNode<'data>
impl<'data> ResourceNode<'data>
sourcepub fn parse(
pe: &'data PE,
offset: ResourceOffset
) -> Result<ResourceNode<'data>, Error>
pub fn parse(
pe: &'data PE,
offset: ResourceOffset
) -> Result<ResourceNode<'data>, Error>
Parse a resource directory node with the given ResourceOffset
.
If the offset goes outside the bounds of the directory, a Error::BufferTooSmall
error
is returned.
Trait Implementations
sourceimpl<'data> Clone for ResourceNode<'data>
impl<'data> Clone for ResourceNode<'data>
sourcefn clone(&self) -> ResourceNode<'data>
fn clone(&self) -> ResourceNode<'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 ResourceNode<'data>
impl<'data> Send for ResourceNode<'data>
impl<'data> Sync for ResourceNode<'data>
impl<'data> Unpin for ResourceNode<'data>
impl<'data> UnwindSafe for ResourceNode<'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