Struct wasmtime_environ::wasmparser::SingleName
source · pub struct SingleName<'a> { /* private fields */ }
Expand description
Represents a single name in the names custom section.
Implementations§
source§impl<'a> SingleName<'a>
impl<'a> SingleName<'a>
sourcepub fn get_name<'b>(&self) -> Result<&'b str, BinaryReaderError>where
'a: 'b,
pub fn get_name<'b>(&self) -> Result<&'b str, BinaryReaderError>where 'a: 'b,
Gets the name as a string.
sourcepub fn original_position(&self) -> usize
pub fn original_position(&self) -> usize
Gets the original position of the name.
Trait Implementations§
source§impl<'a> Clone for SingleName<'a>
impl<'a> Clone for SingleName<'a>
source§fn clone(&self) -> SingleName<'a>
fn clone(&self) -> SingleName<'a>
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<'a> Debug for SingleName<'a>
impl<'a> Debug for SingleName<'a>
impl<'a> Copy for SingleName<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for SingleName<'a>
impl<'a> Send for SingleName<'a>
impl<'a> Sync for SingleName<'a>
impl<'a> Unpin for SingleName<'a>
impl<'a> UnwindSafe for SingleName<'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