[−][src]Struct miniscript::miniscript::types::extra_props::ExtData
Structure representing the extra type properties of a fragment which are relevant to legacy(pre-segwit) safety and fee estimation. If a fragment is used in pre-segwit transactions it will only be malleable but still is correct and sound.
Fields
legacy_safe: LegacySafe
enum sorting whether the fragment is safe to be in used in pre-segwit context
pk_cost: usize
The number of bytes needed to encode its scriptpubkey
has_verify_form: bool
Whether this fragment can be verify-wrapped for free
ops_count_static: usize
The worst case static(unexecuted) ops-count for this Miniscript fragment.
ops_count_sat: Option<usize>
The worst case ops-count for satisfying this Miniscript fragment.
ops_count_nsat: Option<usize>
The worst case ops-count for dissatisfying this Miniscript fragment.
Trait Implementations
impl Clone for ExtData
[src]
impl Copy for ExtData
[src]
impl Debug for ExtData
[src]
impl Eq for ExtData
[src]
impl Hash for ExtData
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for ExtData
[src]
fn cmp(&self, other: &ExtData) -> Ordering
[src]
fn max(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
1.21.0[src]
fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<ExtData> for ExtData
[src]
impl PartialOrd<ExtData> for ExtData
[src]
fn partial_cmp(&self, other: &ExtData) -> Option<Ordering>
[src]
fn lt(&self, other: &ExtData) -> bool
[src]
fn le(&self, other: &ExtData) -> bool
[src]
fn gt(&self, other: &ExtData) -> bool
[src]
fn ge(&self, other: &ExtData) -> bool
[src]
impl Property for ExtData
[src]
fn sanity_checks(&self)
[src]
fn from_true() -> Self
[src]
fn from_false() -> Self
[src]
fn from_pk() -> Self
[src]
fn from_pk_h() -> Self
[src]
fn from_multi(k: usize, n: usize) -> Self
[src]
fn from_hash() -> Self
[src]
fn from_sha256() -> Self
[src]
fn from_hash256() -> Self
[src]
fn from_ripemd160() -> Self
[src]
fn from_hash160() -> Self
[src]
fn from_time(t: u32) -> Self
[src]
fn cast_alt(self) -> Result<Self, ErrorKind>
[src]
fn cast_swap(self) -> Result<Self, ErrorKind>
[src]
fn cast_check(self) -> Result<Self, ErrorKind>
[src]
fn cast_dupif(self) -> Result<Self, ErrorKind>
[src]
fn cast_verify(self) -> Result<Self, ErrorKind>
[src]
fn cast_nonzero(self) -> Result<Self, ErrorKind>
[src]
fn cast_zeronotequal(self) -> Result<Self, ErrorKind>
[src]
fn cast_true(self) -> Result<Self, ErrorKind>
[src]
fn cast_or_i_false(self) -> Result<Self, ErrorKind>
[src]
fn cast_unlikely(self) -> Result<Self, ErrorKind>
[src]
fn cast_likely(self) -> Result<Self, ErrorKind>
[src]
fn and_b(l: Self, r: Self) -> Result<Self, ErrorKind>
[src]
fn and_v(l: Self, r: Self) -> Result<Self, ErrorKind>
[src]
fn or_b(l: Self, r: Self) -> Result<Self, ErrorKind>
[src]
fn or_d(l: Self, r: Self) -> Result<Self, ErrorKind>
[src]
fn or_c(l: Self, r: Self) -> Result<Self, ErrorKind>
[src]
fn or_i(l: Self, r: Self) -> Result<Self, ErrorKind>
[src]
fn and_or(a: Self, b: Self, c: Self) -> Result<Self, ErrorKind>
[src]
fn threshold<S>(k: usize, n: usize, sub_ck: S) -> Result<Self, ErrorKind> where
S: FnMut(usize) -> Result<Self, ErrorKind>,
[src]
S: FnMut(usize) -> Result<Self, ErrorKind>,
fn type_check<Pk, C>(
fragment: &Terminal<Pk>,
_child: C
) -> Result<Self, Error<Pk>> where
C: FnMut(usize) -> Option<Self>,
Pk: MiniscriptKey,
[src]
fragment: &Terminal<Pk>,
_child: C
) -> Result<Self, Error<Pk>> where
C: FnMut(usize) -> Option<Self>,
Pk: MiniscriptKey,
Compute the type of a fragment assuming all the children of Miniscript have been computed already.
fn from_after(t: u32) -> Self
[src]
fn from_older(t: u32) -> Self
[src]
fn and_n(left: Self, right: Self) -> Result<Self, ErrorKind>
[src]
impl StructuralEq for ExtData
[src]
impl StructuralPartialEq for ExtData
[src]
Auto Trait Implementations
impl RefUnwindSafe for ExtData
impl Send for ExtData
impl Sync for ExtData
impl Unpin for ExtData
impl UnwindSafe for ExtData
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,
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.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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.
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>,