Enum rgbstd::WitnessOrd
source · pub enum WitnessOrd {
OnChain(WitnessPos),
OffChain,
}Expand description
RGB consensus information about the current mined height of a witness transaction defining the ordering of the contract state data.
Variants§
OnChain(WitnessPos)
OffChain
Implementations§
source§impl WitnessOrd
impl WitnessOrd
pub fn with_mempool_or_height(height: u32, timestamp: i64) -> WitnessOrd
Trait Implementations§
source§impl Clone for WitnessOrd
impl Clone for WitnessOrd
source§fn clone(&self) -> WitnessOrd
fn clone(&self) -> WitnessOrd
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 WitnessOrd
impl Debug for WitnessOrd
source§impl<'de> Deserialize<'de> for WitnessOrd
impl<'de> Deserialize<'de> for WitnessOrd
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<WitnessOrd, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<WitnessOrd, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for WitnessOrd
impl Display for WitnessOrd
source§impl From<WitnessPos> for WitnessOrd
impl From<WitnessPos> for WitnessOrd
source§fn from(v: WitnessPos) -> WitnessOrd
fn from(v: WitnessPos) -> WitnessOrd
Converts to this type from the input type.
source§impl Hash for WitnessOrd
impl Hash for WitnessOrd
source§impl Ord for WitnessOrd
impl Ord for WitnessOrd
source§fn cmp(&self, other: &WitnessOrd) -> Ordering
fn cmp(&self, other: &WitnessOrd) -> 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 for WitnessOrd
impl PartialEq for WitnessOrd
source§fn eq(&self, other: &WitnessOrd) -> bool
fn eq(&self, other: &WitnessOrd) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for WitnessOrd
impl PartialOrd for WitnessOrd
source§fn partial_cmp(&self, other: &WitnessOrd) -> Option<Ordering>
fn partial_cmp(&self, other: &WitnessOrd) -> 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 WitnessOrd
impl Serialize for WitnessOrd
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 WitnessOrd
impl StrictDecode for WitnessOrd
fn strict_decode(reader: &mut impl TypedRead) -> Result<WitnessOrd, DecodeError>
fn strict_read(lim: usize, reader: impl Read) -> Result<Self, DecodeError>
source§impl StrictDumb for WitnessOrd
impl StrictDumb for WitnessOrd
fn strict_dumb() -> WitnessOrd
source§impl StrictEncode for WitnessOrd
impl StrictEncode for WitnessOrd
fn strict_encode<W>(&self, writer: W) -> Result<W, Error>where W: TypedWrite,
fn strict_write(&self, lim: usize, writer: impl Write) -> Result<usize, Error>
source§impl StrictSum for WitnessOrd
impl StrictSum for WitnessOrd
const ALL_VARIANTS: &'static [(u8, &'static str)] = _
fn variant_name(&self) -> &'static str
fn strict_check_variants()
fn variant_name_by_tag(tag: u8) -> Option<FieldName>
fn variant_ord(&self) -> u8
source§impl StrictType for WitnessOrd
impl StrictType for WitnessOrd
const STRICT_LIB_NAME: &'static str = LIB_NAME_RGB
fn strict_name() -> Option<TypeName>
source§impl StrictUnion for WitnessOrd
impl StrictUnion for WitnessOrd
fn strict_type_info() -> TypeInfo<Self>
impl Copy for WitnessOrd
impl Eq for WitnessOrd
impl StructuralEq for WitnessOrd
impl StructuralPartialEq for WitnessOrd
Auto Trait Implementations§
impl RefUnwindSafe for WitnessOrd
impl Send for WitnessOrd
impl Sync for WitnessOrd
impl Unpin for WitnessOrd
impl UnwindSafe for WitnessOrd
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.