[][src]Enum ergo_lib::ast::value::Value

pub enum Value {
    Boolean(bool),
    Byte(i8),
    Short(i16),
    Int(i32),
    Long(i64),
    BigInt,
    GroupElement(Box<EcPoint>),
    SigmaProp(Box<SigmaProp>),
    CBox(Box<ErgoBox>),
    AvlTree,
    Coll(Box<Coll>),
    Tup(TupleItems<Value>),
    Context(Rc<Context>),
    Opt(Box<Option<Value>>),
    FuncValue(Box<FuncValue>),
}

Runtime value

Variants

Boolean(bool)

Boolean

Byte(i8)

Byte

Short(i16)

Short

Int(i32)

Int

Long(i64)

Long

BigInt

Big integer

GroupElement(Box<EcPoint>)

GroupElement

SigmaProp(Box<SigmaProp>)

Sigma property

CBox(Box<ErgoBox>)

Box

AvlTree

AVL tree

Coll(Box<Coll>)

Collection of values of the same type

Tup(TupleItems<Value>)

Tuple (arbitrary type values)

Context(Rc<Context>)

Transaction(and blockchain) context info

Optional value

FuncValue(Box<FuncValue>)

lambda

Implementations

impl Value[src]

pub fn sigma_prop(prop: SigmaProp) -> Value[src]

Create Sigma property constant

Trait Implementations

impl Clone for Value[src]

impl Debug for Value[src]

impl Eq for Value[src]

impl From<ErgoBox> for Value[src]

impl<T: Into<Value>> From<Option<T>> for Value[src]

impl<T: Into<SigmaProp>> From<T> for Value[src]

impl<T: LiftIntoSType + StoredNonPrimitive + Into<Value>> From<Vec<T, Global>> for Value[src]

impl From<Vec<i8, Global>> for Value[src]

impl Into<Value> for EcPoint[src]

impl PartialEq<Value> for Value[src]

impl StructuralEq for Value[src]

impl StructuralPartialEq for Value[src]

impl TryExtractFrom<Value> for bool[src]

impl TryExtractFrom<Value> for i8[src]

impl TryExtractFrom<Value> for Vec<u8>[src]

impl TryExtractFrom<Value> for Rc<Context>[src]

impl<T: TryExtractFrom<Value>> TryExtractFrom<Value> for Option<T>[src]

impl<TupleElement0: TryExtractFrom<Value>, TupleElement1: TryExtractFrom<Value>> TryExtractFrom<Value> for (TupleElement0, TupleElement1)[src]

impl<TupleElement0: TryExtractFrom<Value>, TupleElement1: TryExtractFrom<Value>, TupleElement2: TryExtractFrom<Value>> TryExtractFrom<Value> for (TupleElement0, TupleElement1, TupleElement2)[src]

impl<TupleElement0: TryExtractFrom<Value>, TupleElement1: TryExtractFrom<Value>, TupleElement2: TryExtractFrom<Value>, TupleElement3: TryExtractFrom<Value>> TryExtractFrom<Value> for (TupleElement0, TupleElement1, TupleElement2, TupleElement3)[src]

impl TryExtractFrom<Value> for i16[src]

impl TryExtractFrom<Value> for i32[src]

impl TryExtractFrom<Value> for i64[src]

impl TryExtractFrom<Value> for EcPoint[src]

impl TryExtractFrom<Value> for SigmaProp[src]

impl TryExtractFrom<Value> for ErgoBox[src]

impl<T: TryExtractFrom<Value> + StoredNonPrimitive> TryExtractFrom<Value> for Vec<T>[src]

impl TryExtractFrom<Value> for Vec<i8>[src]

impl TryFrom<Value> for ProveDlog[src]

type Error = TryExtractFromError

The type returned in the event of a conversion error.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<F> TryExtractInto<F> for F[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,