Enum llhd::value::ValueRef [] [src]

pub enum ValueRef {
    Inst(InstRef),
    Block(BlockRef),
    Argument(ArgumentRef),
    Function(FunctionRef),
    Process(ProcessRef),
    Entity(EntityRef),
    Global,
    Const(Const),
}

A reference to a value in a module.

Variants

Methods

impl ValueRef
[src]

[src]

Convert this value reference into the constant it contains. Panics if the value reference does not contain a constant.

[src]

Unwrap and return a reference to the constant represented by this value reference. Panics if the value reference does not contain a constant.

[src]

Obtain the ID of the value this reference points to, or None if the value has no ID (e.g. if it is a constant).

Trait Implementations

impl Debug for ValueRef
[src]

[src]

Formats the value using the given formatter.

impl Clone for ValueRef
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more