pub struct Id<'a> { /* private fields */ }Expand description
An identifier in a WebAssembly module, prefixed by $ in the textual
format.
An identifier is used to symbolically refer to items in a a wasm module,
typically via the Index type.
Implementations§
Source§impl<'a> Id<'a>
impl<'a> Id<'a>
Sourcepub fn new(name: &'a str, span: Span) -> Id<'a>
pub fn new(name: &'a str, span: Span) -> Id<'a>
Construct a new identifier from given string.
Note that name can be any arbitrary string according to the
WebAssembly/annotations proposal.
Trait Implementations§
Source§impl Peek for Id<'_>
impl Peek for Id<'_>
impl<'a> Copy for Id<'a>
impl<'a> Eq for Id<'a>
Auto Trait Implementations§
impl<'a> Freeze for Id<'a>
impl<'a> RefUnwindSafe for Id<'a>
impl<'a> Send for Id<'a>
impl<'a> Sync for Id<'a>
impl<'a> Unpin for Id<'a>
impl<'a> UnwindSafe for Id<'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