pub struct Local<'a> {
pub id: Option<Id<'a>>,
pub name: Option<NameAnnotation<'a>>,
pub ty: ValType<'a>,
}
Expand description
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more