Skip to main content

LabelLookup

Trait LabelLookup 

Source
pub trait LabelLookup {
    // Required method
    fn label_address(&self, name: &str) -> Result<u32>;
}
Expand description

Resolve @name branch targets through the section’s symbol table.

The loader prepares the whole table before lowering so forward references work. Addresses count executable instructions; @name: definitions occupy no slot.

Required Methods§

Source

fn label_address(&self, name: &str) -> Result<u32>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl LabelLookup for MetadataLoweringContext

Source§

fn label_address(&self, name: &str) -> Result<u32>

Implementors§