Enum cardinal_codegen::entities::ValueInfo[][src]

pub enum ValueInfo {
    IntegerConstant(u64),
    FloatConstant(f64),
    DoubleConstant(f64),
    BooleanConstant(bool),
    StringConstant(String),
    CharConstant(String),
    Named(Named),
    Block(Block),
    Instruction(InstructionInfo),
}
Expand description

Information about a value.

Variants

IntegerConstant

An integer constant.

Tuple Fields of IntegerConstant

0: u64
FloatConstant

A floating point number constant.

Tuple Fields of FloatConstant

0: f64
DoubleConstant

A double constant.

Tuple Fields of DoubleConstant

0: f64
BooleanConstant

A boolean constant.

Tuple Fields of BooleanConstant

0: bool
StringConstant

A string constant.

Tuple Fields of StringConstant

0: String
CharConstant

A character constant.

Tuple Fields of CharConstant

0: String
Named

A named reference.

Tuple Fields of Named

0: Named
Block

A value reference to a block.

Tuple Fields of Block

0: Block
Instruction

A pointer to an instruction.

Tuple Fields of Instruction

0: InstructionInfo

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.