[][src]Struct ergo_headless_dapp_framework::Constant

pub struct Constant {
    pub tpe: SType,
    pub v: Value,
}

Constant

Fields

tpe: SType

Constant type

v: Value

Constant value

Implementations

impl Constant[src]

pub fn base16_str(&self) -> String[src]

Serialized bytes encoded as Base16

Trait Implementations

impl Clone for Constant[src]

impl Debug for Constant[src]

impl<'de> Deserialize<'de> for Constant[src]

impl Eq for Constant[src]

impl From<Constant> for Constant[src]

impl From<EcPoint> for Constant[src]

impl From<SigmaProp> for Constant[src]

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

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

impl From<Vec<u8, Global>> for Constant[src]

impl From<bool> for Constant[src]

impl From<i16> for Constant[src]

impl From<i32> for Constant[src]

impl From<i64> for Constant[src]

impl From<i8> for Constant[src]

impl PartialEq<Constant> for Constant[src]

impl Serialize for Constant[src]

impl SigmaSerializable for Constant[src]

impl StructuralEq for Constant[src]

impl StructuralPartialEq for Constant[src]

impl<T> TryExtractFrom<Constant> for T where
    T: TryExtractFrom<Value>, 
[src]

impl TryFrom<Base16DecodedBytes> for Constant[src]

type Error = SerializationError

The type returned in the event of a conversion error.

Auto Trait Implementations

impl !RefUnwindSafe for Constant

impl !Send for Constant

impl !Sync for Constant

impl Unpin for Constant

impl !UnwindSafe for Constant

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<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[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<T> TryExtractFrom<Constant> for T where
    T: TryExtractFrom<Value>, 
[src]

impl<T> TryExtractFrom<Constant> for T where
    T: TryExtractFrom<Value>, 
[src]

impl<T> TryExtractFrom<Constant> for T where
    T: TryExtractFrom<Value>, 
[src]

impl<T> TryExtractFrom<Constant> for T where
    T: TryExtractFrom<Value>, 
[src]

impl<T> TryExtractFrom<Constant> for T where
    T: TryExtractFrom<Value>, 
[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>,