pub struct AbsLockTime(/* private fields */);
Expand description
An absolute locktime that implements Ord
.
Implementations§
Source§impl AbsLockTime
impl AbsLockTime
Sourcepub fn from_consensus(n: u32) -> Self
pub fn from_consensus(n: u32) -> Self
Constructs an AbsLockTime
from an nLockTime value or the argument to OP_CHEKCLOCKTIMEVERIFY.
Sourcepub fn to_consensus_u32(self) -> u32
pub fn to_consensus_u32(self) -> u32
Returns the inner u32
value. This is the value used when creating this LockTime
i.e., n OP_CHECKLOCKTIMEVERIFY
or nLockTime.
This calls through to locktime::LockTime::to_consensus_u32()
and the same usage warnings
apply.
Trait Implementations§
Source§impl Clone for AbsLockTime
impl Clone for AbsLockTime
Source§fn clone(&self) -> AbsLockTime
fn clone(&self) -> AbsLockTime
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 AbsLockTime
impl Debug for AbsLockTime
Source§impl Display for AbsLockTime
impl Display for AbsLockTime
Source§impl From<AbsLockTime> for LockTime
impl From<AbsLockTime> for LockTime
Source§fn from(lock_time: AbsLockTime) -> LockTime
fn from(lock_time: AbsLockTime) -> LockTime
Converts to this type from the input type.
Source§impl From<LockTime> for AbsLockTime
impl From<LockTime> for AbsLockTime
Source§impl Hash for AbsLockTime
impl Hash for AbsLockTime
Source§impl Ord for AbsLockTime
impl Ord for AbsLockTime
Source§impl PartialEq for AbsLockTime
impl PartialEq for AbsLockTime
Source§impl PartialOrd for AbsLockTime
impl PartialOrd for AbsLockTime
impl Copy for AbsLockTime
impl Eq for AbsLockTime
impl StructuralPartialEq for AbsLockTime
Auto Trait Implementations§
impl Freeze for AbsLockTime
impl RefUnwindSafe for AbsLockTime
impl Send for AbsLockTime
impl Sync for AbsLockTime
impl Unpin for AbsLockTime
impl UnwindSafe for AbsLockTime
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