Struct rgbstd::contract::OrderedTxid
source · pub struct OrderedTxid {
pub height: u32,
pub txid: Txid,
}Expand description
Txid and height information ordered according to the RGB consensus rules.
Fields§
§height: u32§txid: TxidImplementations§
source§impl OrderedTxid
impl OrderedTxid
pub fn new(height: u32, txid: Txid) -> OrderedTxid
Trait Implementations§
source§impl Clone for OrderedTxid
impl Clone for OrderedTxid
source§fn clone(&self) -> OrderedTxid
fn clone(&self) -> OrderedTxid
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 OrderedTxid
impl Debug for OrderedTxid
source§impl<'de> Deserialize<'de> for OrderedTxid
impl<'de> Deserialize<'de> for OrderedTxid
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<OrderedTxid, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<OrderedTxid, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for OrderedTxid
impl Display for OrderedTxid
source§impl Hash for OrderedTxid
impl Hash for OrderedTxid
source§impl Ord for OrderedTxid
impl Ord for OrderedTxid
source§fn cmp(&self, other: &OrderedTxid) -> Ordering
fn cmp(&self, other: &OrderedTxid) -> 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<OrderedTxid> for OrderedTxid
impl PartialEq<OrderedTxid> for OrderedTxid
source§fn eq(&self, other: &OrderedTxid) -> bool
fn eq(&self, other: &OrderedTxid) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd<OrderedTxid> for OrderedTxid
impl PartialOrd<OrderedTxid> for OrderedTxid
source§fn partial_cmp(&self, other: &OrderedTxid) -> Option<Ordering>
fn partial_cmp(&self, other: &OrderedTxid) -> 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 moresource§impl Serialize for OrderedTxid
impl Serialize for OrderedTxid
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,
Serialize this value into the given Serde serializer. Read more
source§impl StrictDecode for OrderedTxid
impl StrictDecode for OrderedTxid
fn strict_decode( reader: &mut impl TypedRead ) -> Result<OrderedTxid, DecodeError>
source§impl StrictDumb for OrderedTxid
impl StrictDumb for OrderedTxid
fn strict_dumb() -> OrderedTxid
source§impl StrictEncode for OrderedTxid
impl StrictEncode for OrderedTxid
fn strict_encode<W>(&self, writer: W) -> Result<W, Error>where W: TypedWrite,
source§impl StrictStruct for OrderedTxid
impl StrictStruct for OrderedTxid
const ALL_FIELDS: &'static [&'static str] = &["height", "txid"]
fn strict_check_fields()
fn strict_type_info() -> TypeInfo<Self>
source§impl StrictType for OrderedTxid
impl StrictType for OrderedTxid
const STRICT_LIB_NAME: &'static str = LIB_NAME_RGB
fn strict_name() -> Option<TypeName>
impl Copy for OrderedTxid
impl Eq for OrderedTxid
impl StrictProduct for OrderedTxid
impl StructuralEq for OrderedTxid
impl StructuralPartialEq for OrderedTxid
Auto Trait Implementations§
impl RefUnwindSafe for OrderedTxid
impl Send for OrderedTxid
impl Sync for OrderedTxid
impl Unpin for OrderedTxid
impl UnwindSafe for OrderedTxid
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
source§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,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.