Struct miniscript::miniscript::types::extra_props::OpLimits
source · pub struct OpLimits {
pub count: usize,
pub sat: Option<usize>,
pub nsat: Option<usize>,
}
Expand description
Helper struct to store information about op code limits. Note that this only counts the non-push opcodes. This is not relevant for TapScript context
Fields§
§count: usize
The worst case static(executed + unexecuted) ops-count for this Miniscript fragment.
sat: Option<usize>
The worst case additional ops-count for satisfying this Miniscript fragment.
nsat: Option<usize>
The worst case additional ops-count for dissatisfying this Miniscript fragment.
Implementations§
Trait Implementations§
source§impl Ord for OpLimits
impl Ord for OpLimits
source§impl PartialEq<OpLimits> for OpLimits
impl PartialEq<OpLimits> for OpLimits
source§impl PartialOrd<OpLimits> for OpLimits
impl PartialOrd<OpLimits> for OpLimits
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for OpLimits
impl Eq for OpLimits
impl StructuralEq for OpLimits
impl StructuralPartialEq for OpLimits
Auto Trait Implementations§
impl RefUnwindSafe for OpLimits
impl Send for OpLimits
impl Sync for OpLimits
impl Unpin for OpLimits
impl UnwindSafe for OpLimits
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more