[][src]Enum minsc::runtime::Value

pub enum Value {
    PubKey(DescriptorPublicKey),
    Hash(Vec<u8>),
    Number(usize),
    DateTime(String),
    Duration(Duration),
    Policy(Policy),
    WithProb(usizePolicy),
    Miniscript(Miniscript),
    Descriptor(Descriptor),
    Address(Address),
    Function(Function),
    Array(Array),
    Network(Network),
}

A runtime value. This is what gets passed around as function arguments, returned from functions, and assigned to variables.

Variants

Hash(Vec<u8>)
Number(usize)
DateTime(String)
Duration(Duration)
Policy(Policy)
WithProb(usizePolicy)
Miniscript(Miniscript)
Descriptor(Descriptor)
Address(Address)
Function(Function)
Array(Array)
Network(Network)

Implementations

impl Value[src]

Trait Implementations

impl Call for Value[src]

impl Clone for Value[src]

impl Debug for Value[src]

impl Display for Value[src]

impl From<Address> for Value[src]

impl From<Array> for Value[src]

impl From<Descriptor<DescriptorPublicKey>> for Value[src]

impl From<DescriptorPublicKey> for Value[src]

impl From<Function> for Value[src]

impl From<Miniscript<DescriptorPublicKey, Segwitv0>> for Value[src]

impl From<Network> for Value[src]

impl From<Policy<DescriptorPublicKey>> for Value[src]

impl From<usize> for Value[src]

impl TryFrom<Value> for Policy[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<Value> for usize[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<Value> for Hash[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<Value> for DescriptorPublicKey[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<Value> for Descriptor[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<Value> for Miniscript[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<Value> for Array[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<Value> for Network[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<Value> for Hash[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<Value> for Hash[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<Value> for Hash[src]

type Error = Error

The type returned in the event of a conversion error.

Auto Trait Implementations

impl RefUnwindSafe for Value

impl Send for Value

impl Sync for Value

impl Unpin for Value

impl UnwindSafe for Value

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> From<T> for T[src]

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

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[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.