[−][src]Enum miniscript::Legacy
Legacy ScriptContext
To be used as P2SH scripts
For creation of Bare scriptpubkeys, construct the Miniscript
under Bare
ScriptContext
Trait Implementations
impl Clone for Legacy
[src]
impl Debug for Legacy
[src]
impl Eq for Legacy
[src]
impl Ord for Legacy
[src]
pub fn cmp(&self, other: &Legacy) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl PartialEq<Legacy> for Legacy
[src]
pub fn eq(&self, other: &Legacy) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialOrd<Legacy> for Legacy
[src]
pub fn partial_cmp(&self, other: &Legacy) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl ScriptContext for Legacy
[src]
pub fn check_terminal_non_malleable<Pk: MiniscriptKey, Ctx: ScriptContext>(
frag: &Terminal<Pk, Ctx>
) -> Result<(), ScriptContextError>
[src]
frag: &Terminal<Pk, Ctx>
) -> Result<(), ScriptContextError>
pub fn check_witness<Pk: MiniscriptKey, Ctx: ScriptContext>(
witness: &[Vec<u8>]
) -> Result<(), ScriptContextError>
[src]
witness: &[Vec<u8>]
) -> Result<(), ScriptContextError>
pub fn check_global_consensus_validity<Pk: MiniscriptKey, Ctx: ScriptContext>(
ms: &Miniscript<Pk, Ctx>
) -> Result<(), ScriptContextError>
[src]
ms: &Miniscript<Pk, Ctx>
) -> Result<(), ScriptContextError>
pub fn check_local_consensus_validity<Pk: MiniscriptKey, Ctx: ScriptContext>(
ms: &Miniscript<Pk, Ctx>
) -> Result<(), ScriptContextError>
[src]
ms: &Miniscript<Pk, Ctx>
) -> Result<(), ScriptContextError>
pub fn check_local_policy_validity<Pk: MiniscriptKey, Ctx: ScriptContext>(
ms: &Miniscript<Pk, Ctx>
) -> Result<(), ScriptContextError>
[src]
ms: &Miniscript<Pk, Ctx>
) -> Result<(), ScriptContextError>
pub fn max_satisfaction_size<Pk: MiniscriptKey, Ctx: ScriptContext>(
ms: &Miniscript<Pk, Ctx>
) -> Option<usize>
[src]
ms: &Miniscript<Pk, Ctx>
) -> Option<usize>
pub fn check_global_policy_validity<Pk: MiniscriptKey, Ctx: ScriptContext>(
_ms: &Miniscript<Pk, Ctx>
) -> Result<(), ScriptContextError>
[src]
_ms: &Miniscript<Pk, Ctx>
) -> Result<(), ScriptContextError>
pub fn check_global_validity<Pk: MiniscriptKey, Ctx: ScriptContext>(
ms: &Miniscript<Pk, Ctx>
) -> Result<(), ScriptContextError>
[src]
ms: &Miniscript<Pk, Ctx>
) -> Result<(), ScriptContextError>
pub fn check_local_validity<Pk: MiniscriptKey, Ctx: ScriptContext>(
ms: &Miniscript<Pk, Ctx>
) -> Result<(), ScriptContextError>
[src]
ms: &Miniscript<Pk, Ctx>
) -> Result<(), ScriptContextError>
pub fn top_level_type_check<Pk: MiniscriptKey, Ctx: ScriptContext>(
ms: &Miniscript<Pk, Ctx>
) -> Result<(), Error>
[src]
ms: &Miniscript<Pk, Ctx>
) -> Result<(), Error>
pub fn other_top_level_checks<Pk: MiniscriptKey, Ctx: ScriptContext>(
_ms: &Miniscript<Pk, Ctx>
) -> Result<(), Error>
[src]
_ms: &Miniscript<Pk, Ctx>
) -> Result<(), Error>
pub fn top_level_checks<Pk: MiniscriptKey, Ctx: ScriptContext>(
ms: &Miniscript<Pk, Ctx>
) -> Result<(), Error>
[src]
ms: &Miniscript<Pk, Ctx>
) -> Result<(), Error>
impl StructuralEq for Legacy
[src]
impl StructuralPartialEq for Legacy
[src]
Auto Trait Implementations
impl RefUnwindSafe for Legacy
impl Send for Legacy
impl Sync for Legacy
impl Unpin for Legacy
impl UnwindSafe for Legacy
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, 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>,