Struct wast::Local [−][src]
A local for a func
or let
instruction.
Each local has an optional identifier for name resolution, an optional name
for the custom name
section, and a value type.
Fields
id: Option<Id<'a>>
An identifier that this local is resolved with (optionally) for name resolution.
name: Option<NameAnnotation<'a>>
An optional name for this local stored in the custom name
section.
ty: ValType<'a>
The value type of this local.
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for Local<'a>
impl<'a> Send for Local<'a>
impl<'a> Sync for Local<'a>
impl<'a> Unpin for Local<'a>
impl<'a> UnwindSafe for Local<'a>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,