pub struct Naming<'a> {
pub index: u32,
pub name: &'a str,
}
Expand description
Represents a name for an index from the names section.
Fields§
§index: u32
The index being named.
name: &'a str
The name for the index.
Trait Implementations§
Source§impl<'a> FromReader<'a> for Naming<'a>
impl<'a> FromReader<'a> for Naming<'a>
Source§fn from_reader(
reader: &mut BinaryReader<'a>,
) -> Result<Naming<'a>, BinaryReaderError>
fn from_reader( reader: &mut BinaryReader<'a>, ) -> Result<Naming<'a>, BinaryReaderError>
Attempts to read
Self
from the provided binary reader, returning an
error if it is unable to do so.impl<'a> Copy for Naming<'a>
Auto Trait Implementations§
impl<'a> Freeze for Naming<'a>
impl<'a> RefUnwindSafe for Naming<'a>
impl<'a> Send for Naming<'a>
impl<'a> Sync for Naming<'a>
impl<'a> Unpin for Naming<'a>
impl<'a> UnwindSafe for Naming<'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
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
)