pub struct ReservedBytes<const LEN: usize, const VAL: u8 = 0>(/* private fields */);
Expand description
Reserved bytes.
Trait Implementations§
Source§impl<const LEN: usize, const VAL: u8> Clone for ReservedBytes<LEN, VAL>
impl<const LEN: usize, const VAL: u8> Clone for ReservedBytes<LEN, VAL>
Source§fn clone(&self) -> ReservedBytes<LEN, VAL>
fn clone(&self) -> ReservedBytes<LEN, VAL>
Returns a duplicate 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<const LEN: usize, const VAL: u8> CommitEncode for ReservedBytes<LEN, VAL>
impl<const LEN: usize, const VAL: u8> CommitEncode for ReservedBytes<LEN, VAL>
Source§type CommitmentId = StrictHash
type CommitmentId = StrictHash
Type of the resulting commitment.
Source§fn commit_encode(&self, e: &mut CommitEngine)
fn commit_encode(&self, e: &mut CommitEngine)
Encodes the data for the commitment by writing them directly into a
std::io::Write
writer instanceSource§impl<'de, const LEN: usize, const VAL: u8> Deserialize<'de> for ReservedBytes<LEN, VAL>
Available on crate feature serde
only.
impl<'de, const LEN: usize, const VAL: u8> Deserialize<'de> for ReservedBytes<LEN, VAL>
Available on crate feature
serde
only.Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<const LEN: usize, const VAL: u8> Ord for ReservedBytes<LEN, VAL>
impl<const LEN: usize, const VAL: u8> Ord for ReservedBytes<LEN, VAL>
Source§fn cmp(&self, other: &ReservedBytes<LEN, VAL>) -> Ordering
fn cmp(&self, other: &ReservedBytes<LEN, VAL>) -> 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<const LEN: usize, const VAL: u8> PartialOrd for ReservedBytes<LEN, VAL>
impl<const LEN: usize, const VAL: u8> PartialOrd for ReservedBytes<LEN, VAL>
Source§impl<const LEN: usize, const VAL: u8> Serialize for ReservedBytes<LEN, VAL>
Available on crate feature serde
only.
impl<const LEN: usize, const VAL: u8> Serialize for ReservedBytes<LEN, VAL>
Available on crate feature
serde
only.Source§impl<const LEN: usize, const VAL: u8> StrictDecode for ReservedBytes<LEN, VAL>
impl<const LEN: usize, const VAL: u8> StrictDecode for ReservedBytes<LEN, VAL>
fn strict_decode(reader: &mut impl TypedRead) -> Result<Self, DecodeError>
fn strict_read(reader: impl ReadRaw) -> Result<Self, DecodeError>
Source§impl<const LEN: usize, const VAL: u8> StrictEncode for ReservedBytes<LEN, VAL>
impl<const LEN: usize, const VAL: u8> StrictEncode for ReservedBytes<LEN, VAL>
fn strict_encode<W: TypedWrite>(&self, writer: W) -> Result<W>
fn strict_write(&self, writer: impl WriteRaw) -> Result<(), Error>
Source§impl<const LEN: usize, const VAL: u8> StrictTuple for ReservedBytes<LEN, VAL>
impl<const LEN: usize, const VAL: u8> StrictTuple for ReservedBytes<LEN, VAL>
const FIELD_COUNT: u8 = 1u8
fn strict_check_fields()
fn strict_type_info() -> TypeInfo<Self>
Source§impl<const LEN: usize, const VAL: u8> StrictType for ReservedBytes<LEN, VAL>
impl<const LEN: usize, const VAL: u8> StrictType for ReservedBytes<LEN, VAL>
const STRICT_LIB_NAME: &'static str = LIB_NAME_COMMIT_VERIFY
fn strict_name() -> Option<TypeName>
impl<const LEN: usize, const VAL: u8> Copy for ReservedBytes<LEN, VAL>
impl<const LEN: usize, const VAL: u8> Eq for ReservedBytes<LEN, VAL>
impl<const LEN: usize, const VAL: u8> StrictProduct for ReservedBytes<LEN, VAL>
impl<const LEN: usize, const VAL: u8> StructuralPartialEq for ReservedBytes<LEN, VAL>
Auto Trait Implementations§
impl<const LEN: usize, const VAL: u8> Freeze for ReservedBytes<LEN, VAL>
impl<const LEN: usize, const VAL: u8> RefUnwindSafe for ReservedBytes<LEN, VAL>
impl<const LEN: usize, const VAL: u8> Send for ReservedBytes<LEN, VAL>
impl<const LEN: usize, const VAL: u8> Sync for ReservedBytes<LEN, VAL>
impl<const LEN: usize, const VAL: u8> Unpin for ReservedBytes<LEN, VAL>
impl<const LEN: usize, const VAL: u8> UnwindSafe for ReservedBytes<LEN, VAL>
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> CommitId for Twhere
T: CommitEncode,
impl<T> CommitId for Twhere
T: CommitEncode,
fn commit(&self) -> CommitEngine
Source§fn commit_id(&self) -> <T as CommitEncode>::CommitmentId
fn commit_id(&self) -> <T as CommitEncode>::CommitmentId
Performs commitment to client-side-validated data
Source§impl<T> CommitmentLayout for Twhere
T: CommitEncode + StrictDumb,
impl<T> CommitmentLayout for Twhere
T: CommitEncode + StrictDumb,
fn commitment_layout() -> CommitLayout
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.