Struct runestick::Unit[][src]

pub struct Unit { /* fields omitted */ }
Expand description

Instructions from a single source file.

Implementations

Construct a new unit with the given content.

Access debug information for the given location if it is available.

Get the instruction at the given instruction pointer.

Iterate over all static strings in the unit.

Iterate over all static object keys in the unit.

Iterate over all instructions in order.

Iterate over dynamic functions.

Lookup the static string by slot, if it exists.

Lookup the static byte string by slot, if it exists.

Lookup the static object keys by slot, if it exists.

Lookup runt-time information for the given type hash.

Lookup variant runt-time information for the given variant hash.

Lookup information of a function.

Read a constant value from the unit.

Trait Implementations

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. 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.