Struct rgbstd::contract::WitnessHeight
source · pub struct WitnessHeight(_);Implementations§
source§impl WitnessHeight
impl WitnessHeight
pub fn new(height: u32) -> Option<WitnessHeight>
pub fn get(&self) -> NonZeroU32
Trait Implementations§
source§impl Clone for WitnessHeight
impl Clone for WitnessHeight
source§fn clone(&self) -> WitnessHeight
fn clone(&self) -> WitnessHeight
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 WitnessHeight
impl Debug for WitnessHeight
source§impl<'de> Deserialize<'de> for WitnessHeight
impl<'de> Deserialize<'de> for WitnessHeight
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<WitnessHeight, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<WitnessHeight, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for WitnessHeight
impl Display for WitnessHeight
source§impl Hash for WitnessHeight
impl Hash for WitnessHeight
source§impl Ord for WitnessHeight
impl Ord for WitnessHeight
source§fn cmp(&self, other: &WitnessHeight) -> Ordering
fn cmp(&self, other: &WitnessHeight) -> 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<WitnessHeight> for WitnessHeight
impl PartialEq<WitnessHeight> for WitnessHeight
source§fn eq(&self, other: &WitnessHeight) -> bool
fn eq(&self, other: &WitnessHeight) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd<WitnessHeight> for WitnessHeight
impl PartialOrd<WitnessHeight> for WitnessHeight
source§fn partial_cmp(&self, other: &WitnessHeight) -> Option<Ordering>
fn partial_cmp(&self, other: &WitnessHeight) -> 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 WitnessHeight
impl Serialize for WitnessHeight
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 WitnessHeight
impl StrictDecode for WitnessHeight
fn strict_decode( reader: &mut impl TypedRead ) -> Result<WitnessHeight, DecodeError>
fn strict_read(lim: usize, reader: impl Read) -> Result<Self, DecodeError>
source§impl StrictDumb for WitnessHeight
impl StrictDumb for WitnessHeight
fn strict_dumb() -> WitnessHeight
source§impl StrictEncode for WitnessHeight
impl StrictEncode for WitnessHeight
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 StrictTuple for WitnessHeight
impl StrictTuple for WitnessHeight
const FIELD_COUNT: u8 = 1u8
fn strict_check_fields()
fn strict_type_info() -> TypeInfo<Self>
source§impl StrictType for WitnessHeight
impl StrictType for WitnessHeight
const STRICT_LIB_NAME: &'static str = LIB_NAME_RGB
fn strict_name() -> Option<TypeName>
impl Copy for WitnessHeight
impl Eq for WitnessHeight
impl StrictProduct for WitnessHeight
impl StructuralEq for WitnessHeight
impl StructuralPartialEq for WitnessHeight
Auto Trait Implementations§
impl RefUnwindSafe for WitnessHeight
impl Send for WitnessHeight
impl Sync for WitnessHeight
impl Unpin for WitnessHeight
impl UnwindSafe for WitnessHeight
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.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.