[][src]Struct walrus::ir::Local

pub struct Local {
    pub name: Option<String>,
    // some fields omitted
}

A local variable or parameter.

Fields

name: Option<String>

A human-readable name for this local, often useful when debugging

Methods

impl Local[src]

pub fn new(id: LocalId, ty: ValType) -> Local[src]

Construct a new local from the given id and type.

pub fn id(&self) -> LocalId[src]

Get this local's id that is unique across the whole module.

pub fn ty(&self) -> ValType[src]

Get this local's type.

Trait Implementations

impl Eq for Local[src]

impl Clone for Local[src]

impl PartialEq<Local> for Local[src]

impl Hash for Local[src]

impl Debug for Local[src]

Auto Trait Implementations

impl Unpin for Local

impl Sync for Local

impl Send for Local

impl UnwindSafe for Local

impl RefUnwindSafe for Local

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]