pub struct ResourceName {
offset: u32,
}
Expand description
A resource name.
Fields§
§offset: u32
Implementations§
source§impl ResourceName
impl ResourceName
sourcepub fn to_string_lossy(
&self,
directory: ResourceDirectory<'_>,
) -> Result<String>
pub fn to_string_lossy( &self, directory: ResourceDirectory<'_>, ) -> Result<String>
Converts to a String
.
sourcepub fn data<'data>(
&self,
directory: ResourceDirectory<'data>,
) -> Result<&'data [U16Bytes<LE>]>
pub fn data<'data>( &self, directory: ResourceDirectory<'data>, ) -> Result<&'data [U16Bytes<LE>]>
Returns the string unicode buffer.
sourcepub fn raw_data<'data>(
&self,
directory: ResourceDirectory<'data>,
) -> Result<&'data [u8]>
pub fn raw_data<'data>( &self, directory: ResourceDirectory<'data>, ) -> Result<&'data [u8]>
Returns the string buffer as raw bytes.
Trait Implementations§
source§impl Clone for ResourceName
impl Clone for ResourceName
source§fn clone(&self) -> ResourceName
fn clone(&self) -> ResourceName
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ResourceName
impl Debug for ResourceName
impl Copy for ResourceName
Auto Trait Implementations§
impl Freeze for ResourceName
impl RefUnwindSafe for ResourceName
impl Send for ResourceName
impl Sync for ResourceName
impl Unpin for ResourceName
impl UnwindSafe for ResourceName
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)