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 more