Struct sapio_base::timelocks::LockTime [−][src]
LockTime represents either a nLockTime or a Sequence field. They are represented generically in the same type
Implementations
impl<A, TT> LockTime<A, TT> where
A: Absolutivity,
TT: TimeType,
[src]
A: Absolutivity,
TT: TimeType,
Trait Implementations
impl<RelOrAbs: Clone + Absolutivity, HeightOrTime: Clone + TimeType> Clone for LockTime<RelOrAbs, HeightOrTime>
[src]
fn clone(&self) -> LockTime<RelOrAbs, HeightOrTime>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<RelOrAbs: Copy + Absolutivity, HeightOrTime: Copy + TimeType> Copy for LockTime<RelOrAbs, HeightOrTime>
[src]
impl<'de, RelOrAbs: Absolutivity, HeightOrTime: TimeType> Deserialize<'de> for LockTime<RelOrAbs, HeightOrTime>
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl<RelOrAbs: Eq + Absolutivity, HeightOrTime: Eq + TimeType> Eq for LockTime<RelOrAbs, HeightOrTime>
[src]
impl<A, TT> From<LockTime<A, TT>> for Clause where
A: Absolutivity,
TT: TimeType,
[src]
A: Absolutivity,
TT: TimeType,
impl From<LockTime<Abs, Height>> for AnyAbsTimeLock
[src]
impl From<LockTime<Abs, MTP>> for AnyAbsTimeLock
[src]
impl From<LockTime<Rel, Height>> for AnyRelTimeLock
[src]
impl From<LockTime<Rel, MTP>> for AnyRelTimeLock
[src]
impl<RelOrAbs: Absolutivity + JsonSchema, HeightOrTime: TimeType + JsonSchema> JsonSchema for LockTime<RelOrAbs, HeightOrTime>
[src]
fn is_referenceable() -> bool
[src]
fn schema_name() -> String
[src]
fn json_schema(gen: &mut SchemaGenerator) -> Schema
[src]
fn json_schema_for_flatten(gen: &mut SchemaGenerator) -> Schema
[src]
fn add_schema_as_property(
gen: &mut SchemaGenerator,
parent: &mut SchemaObject,
name: String,
metadata: Option<Metadata>,
required: bool
)
[src]
gen: &mut SchemaGenerator,
parent: &mut SchemaObject,
name: String,
metadata: Option<Metadata>,
required: bool
)
impl<RelOrAbs: Ord + Absolutivity, HeightOrTime: Ord + TimeType> Ord for LockTime<RelOrAbs, HeightOrTime>
[src]
fn cmp(&self, other: &LockTime<RelOrAbs, HeightOrTime>) -> 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<RelOrAbs: PartialEq + Absolutivity, HeightOrTime: PartialEq + TimeType> PartialEq<LockTime<RelOrAbs, HeightOrTime>> for LockTime<RelOrAbs, HeightOrTime>
[src]
fn eq(&self, other: &LockTime<RelOrAbs, HeightOrTime>) -> bool
[src]
fn ne(&self, other: &LockTime<RelOrAbs, HeightOrTime>) -> bool
[src]
impl<RelOrAbs: PartialOrd + Absolutivity, HeightOrTime: PartialOrd + TimeType> PartialOrd<LockTime<RelOrAbs, HeightOrTime>> for LockTime<RelOrAbs, HeightOrTime>
[src]
fn partial_cmp(
&self,
other: &LockTime<RelOrAbs, HeightOrTime>
) -> Option<Ordering>
[src]
&self,
other: &LockTime<RelOrAbs, HeightOrTime>
) -> Option<Ordering>
#[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<RelOrAbs: Absolutivity, HeightOrTime: TimeType> Serialize for LockTime<RelOrAbs, HeightOrTime>
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<RelOrAbs: Absolutivity, HeightOrTime: TimeType> StructuralEq for LockTime<RelOrAbs, HeightOrTime>
[src]
impl<RelOrAbs: Absolutivity, HeightOrTime: TimeType> StructuralPartialEq for LockTime<RelOrAbs, HeightOrTime>
[src]
Auto Trait Implementations
impl<RelOrAbs, HeightOrTime> RefUnwindSafe for LockTime<RelOrAbs, HeightOrTime> where
HeightOrTime: RefUnwindSafe,
RelOrAbs: RefUnwindSafe,
HeightOrTime: RefUnwindSafe,
RelOrAbs: RefUnwindSafe,
impl<RelOrAbs, HeightOrTime> Send for LockTime<RelOrAbs, HeightOrTime> where
HeightOrTime: Send,
RelOrAbs: Send,
HeightOrTime: Send,
RelOrAbs: Send,
impl<RelOrAbs, HeightOrTime> Sync for LockTime<RelOrAbs, HeightOrTime> where
HeightOrTime: Sync,
RelOrAbs: Sync,
HeightOrTime: Sync,
RelOrAbs: Sync,
impl<RelOrAbs, HeightOrTime> Unpin for LockTime<RelOrAbs, HeightOrTime> where
HeightOrTime: Unpin,
RelOrAbs: Unpin,
HeightOrTime: Unpin,
RelOrAbs: Unpin,
impl<RelOrAbs, HeightOrTime> UnwindSafe for LockTime<RelOrAbs, HeightOrTime> where
HeightOrTime: UnwindSafe,
RelOrAbs: UnwindSafe,
HeightOrTime: UnwindSafe,
RelOrAbs: UnwindSafe,
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> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> DynClone for T where
T: Clone,
[src]
T: Clone,
pub fn __clone_box(&self, Private) -> *mut ()
[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>,