Struct rgbstd::ExtensionType
source · pub struct ExtensionType(/* private fields */);Implementations§
source§impl ExtensionType
impl ExtensionType
pub const fn with(ty: u16) -> ExtensionType
Trait Implementations§
source§impl AsRef<u16> for ExtensionType
impl AsRef<u16> for ExtensionType
source§impl Borrow<u16> for ExtensionType
impl Borrow<u16> for ExtensionType
source§impl Clone for ExtensionType
impl Clone for ExtensionType
source§fn clone(&self) -> ExtensionType
fn clone(&self) -> ExtensionType
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 CommitEncode for ExtensionType
impl CommitEncode for ExtensionType
source§fn commit_encode(&self, e: &mut impl Write)
fn commit_encode(&self, e: &mut impl Write)
Encodes the data for the commitment by writing them directly into a
io::Write writer instancesource§impl Debug for ExtensionType
impl Debug for ExtensionType
source§impl<'de> Deserialize<'de> for ExtensionType
impl<'de> Deserialize<'de> for ExtensionType
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<ExtensionType, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<ExtensionType, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for ExtensionType
impl Display for ExtensionType
source§impl From<u16> for ExtensionType
impl From<u16> for ExtensionType
source§fn from(v: u16) -> ExtensionType
fn from(v: u16) -> ExtensionType
Converts to this type from the input type.
source§impl FromStr for ExtensionType
impl FromStr for ExtensionType
source§impl Hash for ExtensionType
impl Hash for ExtensionType
source§impl LowerHex for ExtensionType
impl LowerHex for ExtensionType
source§impl Ord for ExtensionType
impl Ord for ExtensionType
source§fn cmp(&self, other: &ExtensionType) -> Ordering
fn cmp(&self, other: &ExtensionType) -> 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 ExtensionType
impl PartialEq for ExtensionType
source§fn eq(&self, other: &ExtensionType) -> bool
fn eq(&self, other: &ExtensionType) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for ExtensionType
impl PartialOrd for ExtensionType
source§fn partial_cmp(&self, other: &ExtensionType) -> Option<Ordering>
fn partial_cmp(&self, other: &ExtensionType) -> 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 ExtensionType
impl Serialize for ExtensionType
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 ExtensionType
impl StrictDecode for ExtensionType
fn strict_decode( reader: &mut impl TypedRead ) -> Result<ExtensionType, DecodeError>
fn strict_read(lim: usize, reader: impl Read) -> Result<Self, DecodeError>
source§impl StrictDumb for ExtensionType
impl StrictDumb for ExtensionType
fn strict_dumb() -> ExtensionType
source§impl StrictEncode for ExtensionType
impl StrictEncode for ExtensionType
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 ExtensionType
impl StrictTuple for ExtensionType
const FIELD_COUNT: u8 = 1u8
fn strict_check_fields()
fn strict_type_info() -> TypeInfo<Self>
source§impl StrictType for ExtensionType
impl StrictType for ExtensionType
const STRICT_LIB_NAME: &'static str = LIB_NAME_RGB
fn strict_name() -> Option<TypeName>
source§impl UpperHex for ExtensionType
impl UpperHex for ExtensionType
source§impl Wrapper for ExtensionType
impl Wrapper for ExtensionType
source§fn from_inner(inner: <ExtensionType as Wrapper>::Inner) -> ExtensionType
fn from_inner(inner: <ExtensionType as Wrapper>::Inner) -> ExtensionType
Instantiates wrapper type with the inner data
source§fn as_inner(&self) -> &<ExtensionType as Wrapper>::Inner
fn as_inner(&self) -> &<ExtensionType as Wrapper>::Inner
Returns reference to the inner representation for the wrapper type
source§fn into_inner(self) -> <ExtensionType as Wrapper>::Inner
fn into_inner(self) -> <ExtensionType as Wrapper>::Inner
Unwraps the wrapper returning the inner type
impl Copy for ExtensionType
impl Eq for ExtensionType
impl StrictProduct for ExtensionType
impl StructuralEq for ExtensionType
impl StructuralPartialEq for ExtensionType
Auto Trait Implementations§
impl RefUnwindSafe for ExtensionType
impl Send for ExtensionType
impl Sync for ExtensionType
impl Unpin for ExtensionType
impl UnwindSafe for ExtensionType
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.