Enum lief::pe::ResourceNode
pub enum ResourceNode<'a> {
Data(Data<'a>),
Directory(Directory<'a>),
}
Expand description
This enum represents a node in the resource tree which can be either: a directory node or a data (leaf) node.
Variants§
Implementations§
Trait Implementations§
§impl NodeBase for Node<'_>
impl NodeBase for Node<'_>
§fn id(&self) -> u32
fn id(&self) -> u32
Integer that identifies the Type, Name, or Language ID of the entry
depending on its
NodeBase::depth
in the tree§fn add_child(&mut self, node: &Node<'_>) -> Node<'_>
fn add_child(&mut self, node: &Node<'_>) -> Node<'_>
Add a new child node to the current and return the newly-added node
§fn delete_child(&mut self, id: u32)
fn delete_child(&mut self, id: u32)
Delete the child node with the given id
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Node<'a>
impl<'a> !Send for Node<'a>
impl<'a> !Sync for Node<'a>
impl<'a> Unpin for Node<'a>
impl<'a> !UnwindSafe for Node<'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