Enum wasmparser::ComponentExternName
source · pub enum ComponentExternName<'a> {
Kebab(&'a str),
Interface(&'a str),
}
Expand description
Represents the name of a component import.
Variants§
Implementations§
Trait Implementations§
source§impl<'a> Clone for ComponentExternName<'a>
impl<'a> Clone for ComponentExternName<'a>
source§fn clone(&self) -> ComponentExternName<'a>
fn clone(&self) -> ComponentExternName<'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 ComponentExternName<'a>
impl<'a> Debug for ComponentExternName<'a>
source§impl<'a> FromReader<'a> for ComponentExternName<'a>
impl<'a> FromReader<'a> for ComponentExternName<'a>
source§fn from_reader(reader: &mut BinaryReader<'a>) -> Result<Self>
fn from_reader(reader: &mut BinaryReader<'a>) -> Result<Self>
Attempts to read
Self
from the provided binary reader, returning an
error if it is unable to do so.