[][src]Struct miniscript::miniscript::types::extra_props::ExtData

pub struct ExtData {
    pub legacy_safe: LegacySafe,
    pub pk_cost: usize,
    pub has_verify_form: bool,
    pub ops_count_static: usize,
    pub ops_count_sat: Option<usize>,
    pub ops_count_nsat: Option<usize>,
}

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]

impl Ord for ExtData[src]

impl PartialEq<ExtData> for ExtData[src]

impl PartialOrd<ExtData> for ExtData[src]

impl Property for ExtData[src]

fn type_check<Pk, C>(
    fragment: &Terminal<Pk>,
    _child: C
) -> Result<Self, Error<Pk>> where
    C: FnMut(usize) -> Option<Self>,
    Pk: MiniscriptKey
[src]

Compute the type of a fragment assuming all the children of Miniscript have been computed already.

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]

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, 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.