Enum llhd::konst::ConstKind [] [src]

pub enum ConstKind {
    Int(ConstInt),
    Time(ConstTime),
}

Variants

Methods

impl ConstKind
[src]

[src]

Yield a reference to this constant's embedded integer. Panics if the constant is not an integer.

[src]

Yield a reference to this constant's embedded time. Panics if the constant is not a time.

Trait Implementations

impl Debug for ConstKind
[src]

[src]

Formats the value using the given formatter.

impl Clone for ConstKind
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for ConstKind
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Eq for ConstKind
[src]

impl Value for ConstKind
[src]

[src]

Get the unique ID of the value.

[src]

Get the type of the value.

[src]

Get the optional name of the value.

[src]

Whether this value is global or not. Global values are considered during linking, and are visible in a module's symbol table. Local values are not, and are only visible within the surrounding context (module or unit). Read more