Struct ckb_verification::Since
source · pub struct Since(pub u64);Expand description
The struct define wrapper for (unsigned 64-bit integer) tx field since
See tx-since
Tuple Fields§
§0: u64Implementations§
source§impl Since
impl Since
sourcepub fn is_absolute(self) -> bool
pub fn is_absolute(self) -> bool
Whether since represented absolute form
sourcepub fn is_relative(self) -> bool
pub fn is_relative(self) -> bool
Whether since represented relative form
sourcepub fn flags_is_valid(self) -> bool
pub fn flags_is_valid(self) -> bool
Whether since flag is valid
sourcepub fn extract_metric(self) -> Option<SinceMetric>
pub fn extract_metric(self) -> Option<SinceMetric>
Extracts a SinceMetric from an unsigned 64-bit integer since
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Since
impl Send for Since
impl Sync for Since
impl Unpin for Since
impl UnwindSafe for Since
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