pub struct Locals<'a> { /* private fields */ }
Expand description

Locals are the concatenation of a slice of function parameters with function declared local variables.

Local variables are given in the form of groups represented by pairs of a value_type and a count.

Implementations

Create a new wrapper around declared variables and parameters.

Returns parameter count.

Returns total count of all declared locals and paramaterers.

Returns the type of a local variable (either a declared local or a param).

Returns Err in the case of overflow or when idx falls out of range.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.