pub struct KitId(/* private fields */);Expand description
Kit identifier.
Kit identifier commits to all data provided within the kit.
Implementations§
Methods from Deref<Target = Array<u8, 32>>§
Trait Implementations§
impl Copy for KitId
Source§impl<'de> Deserialize<'de> for KitId
impl<'de> Deserialize<'de> for KitId
Source§fn deserialize<D>(
deserializer: D,
) -> Result<KitId, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<KitId, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl DisplayBaid64 for KitId
impl DisplayBaid64 for KitId
const HRI: &'static str = "rgb:kit"
const CHUNKING: bool = true
const PREFIX: bool = true
const EMBED_CHECKSUM: bool = false
const MNEMONIC: bool = false
fn to_baid64_payload(&self) -> [u8; 32]
const CHUNK_FIRST: usize = 8
const CHUNK_LEN: usize = 7
fn to_baid64_string(&self) -> String
fn to_baid64_mnemonic(&self) -> String
fn display_baid64(&self) -> Baid64Display<LEN>
fn fmt_baid64(&self, f: &mut Formatter<'_>) -> Result<(), Error>
impl Eq for KitId
Source§impl FromBaid64Str for KitId
impl FromBaid64Str for KitId
fn from_baid64_str(s: &str) -> Result<Self, Baid64ParseError>
Source§impl Ord for KitId
impl Ord for KitId
1.21.0 (const: unstable) · 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 PartialOrd for KitId
impl PartialOrd for KitId
Source§impl Serialize for KitId
impl Serialize for KitId
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 KitId
impl StrictDecode for KitId
fn strict_decode(reader: &mut impl TypedRead) -> Result<KitId, DecodeError>
fn strict_read(reader: impl ReadRaw) -> Result<Self, DecodeError>
Source§impl StrictDumb for KitId
impl StrictDumb for KitId
fn strict_dumb() -> KitId
Source§impl StrictEncode for KitId
impl StrictEncode for KitId
fn strict_encode<W>(&self, writer: W) -> Result<W, Error>where
W: TypedWrite,
fn strict_write(&self, writer: impl WriteRaw) -> Result<(), Error>
impl StrictProduct for KitId
Source§impl StrictTuple for KitId
impl StrictTuple for KitId
const FIELD_COUNT: u8
fn strict_check_fields()
fn strict_type_info() -> TypeInfo<Self>
Source§impl StrictType for KitId
impl StrictType for KitId
const STRICT_LIB_NAME: &'static str = LIB_NAME_RGB_OPS
fn strict_name() -> Option<TypeName>
impl StructuralPartialEq for KitId
Source§impl Wrapper for KitId
impl Wrapper for KitId
Source§fn from_inner(inner: <KitId as Wrapper>::Inner) -> KitId
fn from_inner(inner: <KitId as Wrapper>::Inner) -> KitId
Instantiates wrapper type with the inner data
Source§fn as_inner(&self) -> &<KitId as Wrapper>::Inner
fn as_inner(&self) -> &<KitId as Wrapper>::Inner
Returns reference to the inner representation for the wrapper type
Auto Trait Implementations§
impl Freeze for KitId
impl RefUnwindSafe for KitId
impl Send for KitId
impl Sync for KitId
impl Unpin for KitId
impl UnsafeUnpin for KitId
impl UnwindSafe for KitId
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<Id, const LEN: usize, const REVERSE_STR: bool> ByteArray<LEN> for Id
impl<Id, const LEN: usize, const REVERSE_STR: bool> ByteArray<LEN> for Id
Source§fn from_byte_array(val: impl Into<[u8; LEN]>) -> Id
fn from_byte_array(val: impl Into<[u8; LEN]>) -> Id
Constructs a wrapper type around a byte array.
Source§fn from_slice(slice: impl AsRef<[u8]>) -> Result<Id, FromSliceError>
fn from_slice(slice: impl AsRef<[u8]>) -> Result<Id, FromSliceError>
Constructs a byte array from the slice. Errors if the slice length
doesn’t match
LEN constant generic.Source§fn from_slice_unsafe(slice: impl AsRef<[u8]>) -> Id
fn from_slice_unsafe(slice: impl AsRef<[u8]>) -> Id
Constructs a byte array from the slice. Expects the slice length
doesn’t match
LEN constant generic. Read moreSource§fn to_byte_array(&self) -> [u8; LEN]
fn to_byte_array(&self) -> [u8; LEN]
Returns a byte array representation stored in the wrapped type.
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.