Struct sapio_miniscript::miniscript::types::extra_props::TimeLockInfo
source · pub struct TimeLockInfo {
pub csv_with_height: bool,
pub csv_with_time: bool,
pub cltv_with_height: bool,
pub cltv_with_time: bool,
pub contains_combination: bool,
}
Expand description
Helper struct Whether any satisfaction of this fragment contains any timelocks
Fields§
§csv_with_height: bool
csv with heights
csv_with_time: bool
csv with times
cltv_with_height: bool
cltv with heights
cltv_with_time: bool
cltv with times
contains_combination: bool
combination of any heightlocks and timelocks
Implementations§
source§impl TimeLockInfo
impl TimeLockInfo
sourcepub fn contains_unspendable_path(self) -> bool
pub fn contains_unspendable_path(self) -> bool
Whether the current contains any possible unspendable path
Trait Implementations§
source§impl Clone for TimeLockInfo
impl Clone for TimeLockInfo
source§fn clone(&self) -> TimeLockInfo
fn clone(&self) -> TimeLockInfo
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for TimeLockInfo
impl Debug for TimeLockInfo
source§impl Default for TimeLockInfo
impl Default for TimeLockInfo
source§impl Hash for TimeLockInfo
impl Hash for TimeLockInfo
source§impl Ord for TimeLockInfo
impl Ord for TimeLockInfo
source§fn cmp(&self, other: &TimeLockInfo) -> Ordering
fn cmp(&self, other: &TimeLockInfo) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for TimeLockInfo
impl PartialEq for TimeLockInfo
source§fn eq(&self, other: &TimeLockInfo) -> bool
fn eq(&self, other: &TimeLockInfo) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for TimeLockInfo
impl PartialOrd for TimeLockInfo
source§fn partial_cmp(&self, other: &TimeLockInfo) -> Option<Ordering>
fn partial_cmp(&self, other: &TimeLockInfo) -> Option<Ordering>
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 TimeLockInfo
impl Eq for TimeLockInfo
impl StructuralEq for TimeLockInfo
impl StructuralPartialEq for TimeLockInfo
Auto Trait Implementations§
impl RefUnwindSafe for TimeLockInfo
impl Send for TimeLockInfo
impl Sync for TimeLockInfo
impl Unpin for TimeLockInfo
impl UnwindSafe for TimeLockInfo
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