pub struct SeqNo(/* private fields */);
Implementations§
source§impl SeqNo
impl SeqNo
pub const fn from_consensus_u32(lock_time: u32) -> Self
pub const fn to_consensus_u32(&self) -> u32
Trait Implementations§
source§impl ConsensusDecode for SeqNo
impl ConsensusDecode for SeqNo
fn consensus_decode( reader: &mut impl Read ) -> Result<Self, ConsensusDecodeError>
fn consensus_deserialize( bytes: impl AsRef<[u8]> ) -> Result<Self, ConsensusDecodeError>
source§impl ConsensusEncode for SeqNo
impl ConsensusEncode for SeqNo
source§impl<'de> Deserialize<'de> for SeqNo
impl<'de> Deserialize<'de> for SeqNo
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for SeqNo
impl PartialEq for SeqNo
source§impl StrictDecode for SeqNo
impl StrictDecode for SeqNo
fn strict_decode(reader: &mut impl TypedRead) -> Result<Self, DecodeError>
fn strict_read(lim: usize, reader: impl Read) -> Result<Self, DecodeError>
source§impl StrictDumb for SeqNo
impl StrictDumb for SeqNo
fn strict_dumb() -> Self
source§impl StrictEncode for SeqNo
impl StrictEncode for SeqNo
fn strict_encode<W: TypedWrite>(&self, writer: W) -> Result<W>
fn strict_write(&self, lim: usize, writer: impl Write) -> Result<usize, Error>
source§impl StrictTuple for SeqNo
impl StrictTuple for SeqNo
const FIELD_COUNT: u8 = 1u8
fn strict_check_fields()
fn strict_type_info() -> TypeInfo<Self>
source§impl StrictType for SeqNo
impl StrictType for SeqNo
const STRICT_LIB_NAME: &'static str = LIB_NAME_BITCOIN
fn strict_name() -> Option<TypeName>
impl Copy for SeqNo
impl Eq for SeqNo
impl StrictProduct for SeqNo
impl StructuralEq for SeqNo
impl StructuralPartialEq for SeqNo
Auto Trait Implementations§
impl RefUnwindSafe for SeqNo
impl Send for SeqNo
impl Sync for SeqNo
impl Unpin for SeqNo
impl UnwindSafe for SeqNo
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.