[][src]Struct miniscript::miniscript::types::malleability::Malleability

pub struct Malleability {
    pub dissat: Dissat,
    pub safe: bool,
    pub non_malleable: bool,
}

Structure representing the type properties of a fragment which have relevance to malleability analysis

Fields

dissat: Dissat

Properties of dissatisfying inputs

safe: bool

true if satisfactions cannot be created by any 3rd party who has not yet seen a satisfaction. (Hash preimages and signature checks are safe; timelocks are not.) Affects malleability.

non_malleable: bool

Whether a non-malleable satisfaction is guaranteed to exist for the fragment

Implementations

impl Malleability[src]

pub fn is_subtype(&self, other: Self) -> bool[src]

Check whether the self is a subtype of other argument . This checks whether the argument other has attributes which are present in the given Type. This returns true on same arguments a.is_subtype(a) is true.

Trait Implementations

impl Clone for Malleability[src]

impl Copy for Malleability[src]

impl Debug for Malleability[src]

impl Eq for Malleability[src]

impl Hash for Malleability[src]

impl Ord for Malleability[src]

impl PartialEq<Malleability> for Malleability[src]

impl PartialOrd<Malleability> for Malleability[src]

impl Property for Malleability[src]

impl StructuralEq for Malleability[src]

impl StructuralPartialEq for Malleability[src]

Auto Trait Implementations

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.