Enum leo_asg::const_value::ConstValue[][src]

pub enum ConstValue<'a> {
    Int(ConstInt),
    Group(GroupValue),
    Field(BigInt),
    Address(StrTendril),
    Boolean(bool),
    Char(CharValue),
    Tuple(Vec<ConstValue<'a>>),
    Array(Vec<ConstValue<'a>>),
    Circuit(&'a Circuit<'a>, IndexMap<String, (Identifier, ConstValue<'a>)>),
}

Variants

Int

Tuple Fields of Int

0: ConstInt
Group

Tuple Fields of Group

0: GroupValue
Field

Tuple Fields of Field

0: BigInt
Address

Tuple Fields of Address

0: StrTendril
Boolean

Tuple Fields of Boolean

0: bool
Char

Tuple Fields of Char

0: CharValue
Tuple

Tuple Fields of Tuple

0: Vec<ConstValue<'a>>
Array

Tuple Fields of Array

0: Vec<ConstValue<'a>>
Circuit

Tuple Fields of Circuit

0: &'a Circuit<'a>1: IndexMap<String, (Identifier, ConstValue<'a>)>

Implementations

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

This method tests for !=.

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.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

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.