[−][src]Enum minsc::runtime::Value
A runtime value. This is what gets passed around as function arguments, returned from functions, and assigned to variables.
Variants
PubKey(DescriptorPublicKey)
Number(usize)
DateTime(String)
Duration(Duration)
Policy(Policy)
Miniscript(Miniscript)
Descriptor(Descriptor)
Function(Function)
Array(Array)
Implementations
impl Value
[src]
pub fn is_array(&self) -> bool
[src]
pub fn into_policy(self) -> Result<Policy>
[src]
pub fn into_usize(self) -> Result<usize>
[src]
pub fn into_key(self) -> Result<DescriptorPublicKey>
[src]
pub fn into_miniscript(self) -> Result<Miniscript>
[src]
pub fn into_desc(self) -> Result<Descriptor>
[src]
pub fn into_array_elements(self) -> Result<Vec<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]
pub fn from(v: Descriptor) -> Self
[src]
impl From<DescriptorPublicKey> for Value
[src]
pub fn from(v: DescriptorPublicKey) -> Self
[src]
impl From<Function> for Value
[src]
impl From<Miniscript<DescriptorPublicKey, Segwitv0>> for Value
[src]
pub fn from(v: Miniscript) -> Self
[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.
pub fn try_from(value: Value) -> Result<Self>
[src]
impl TryFrom<Value> for usize
[src]
type Error = Error
The type returned in the event of a conversion error.
pub fn try_from(value: Value) -> Result<Self>
[src]
impl TryFrom<Value> for Hash
[src]
type Error = Error
The type returned in the event of a conversion error.
pub fn try_from(value: Value) -> Result<Self>
[src]
impl TryFrom<Value> for DescriptorPublicKey
[src]
type Error = Error
The type returned in the event of a conversion error.
pub fn try_from(value: Value) -> Result<Self>
[src]
impl TryFrom<Value> for Descriptor
[src]
type Error = Error
The type returned in the event of a conversion error.
pub fn try_from(value: Value) -> Result<Self>
[src]
impl TryFrom<Value> for Miniscript
[src]
type Error = Error
The type returned in the event of a conversion error.
pub fn try_from(value: Value) -> Result<Self>
[src]
impl TryFrom<Value> for Array
[src]
type Error = Error
The type returned in the event of a conversion error.
pub fn try_from(value: Value) -> Result<Self>
[src]
impl TryFrom<Value> for Network
[src]
type Error = Error
The type returned in the event of a conversion error.
pub fn try_from(value: Value) -> Result<Self>
[src]
impl TryFrom<Value> for Hash
[src]
type Error = Error
The type returned in the event of a conversion error.
pub fn try_from(value: Value) -> Result<Self>
[src]
impl TryFrom<Value> for Hash
[src]
type Error = Error
The type returned in the event of a conversion error.
pub fn try_from(value: Value) -> Result<Self>
[src]
impl TryFrom<Value> for Hash
[src]
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,