Struct cranelift_codegen::ir::constant::ConstantPoolEntry[][src]

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

Inner type for storing data and offset together in the constant pool. The offset is optional because it must be set relative to the function code size (i.e. constants are emitted after the function body); because the function is not yet compiled when constants are inserted, set_offset must be called once a constant’s offset from the beginning of the function is known (see relaxation in relaxation.rs).

Implementations

Return the size of the constant at this entry.

Assign a new offset to the constant at this entry.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. 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 resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

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.