pub struct Data<'a> { /* private fields */ }
Implementations§
§impl Data<'_>
impl Data<'_>
pub fn with_buffer(buffer: &[u8]) -> Data<'static>
pub fn with_buffer(buffer: &[u8]) -> Data<'static>
Create a new Data node with the provided payload
pub fn code_page(&self) -> u32
pub fn code_page(&self) -> u32
Return the code page that is used to decode code point values within the resource data. Typically, the code page is the unicode code page.
pub fn offset(&self) -> u32
pub fn offset(&self) -> u32
Offset of the content within the resource
this value may change when rebuilding resource table
pub fn set_content(&mut self, content: &[u8]) -> &mut Self
pub fn set_content(&mut self, content: &[u8]) -> &mut Self
Change or set the raw data associated with this node
pub fn set_code_page(&mut self, code_page: u32) -> &mut Self
pub fn set_code_page(&mut self, code_page: u32) -> &mut Self
Change or set the code page
pub fn set_reserved(&mut self, reserved: u32) -> &mut Self
pub fn set_reserved(&mut self, reserved: u32) -> &mut Self
Change or set the reserved field
Trait Implementations§
§impl NodeBase for Data<'_>
impl NodeBase for Data<'_>
§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 Data<'a>
impl<'a> !Send for Data<'a>
impl<'a> !Sync for Data<'a>
impl<'a> Unpin for Data<'a>
impl<'a> !UnwindSafe for Data<'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