pub struct Digest(pub [u8; 32]);Tuple Fields§
§0: [u8; 32]Implementations§
Trait Implementations§
Source§impl AsRef<Digest> for L1InfoRoot
impl AsRef<Digest> for L1InfoRoot
Source§impl AsRef<Digest> for LocalBalanceRoot
impl AsRef<Digest> for LocalBalanceRoot
Source§impl AsRef<Digest> for LocalExitRoot
impl AsRef<Digest> for LocalExitRoot
Source§impl AsRef<Digest> for LocalNullifierRoot
impl AsRef<Digest> for LocalNullifierRoot
Source§impl AsRef<Digest> for PessimisticRoot
impl AsRef<Digest> for PessimisticRoot
Source§impl<'de> Deserialize<'de> for Digest
impl<'de> Deserialize<'de> for Digest
Source§fn deserialize<D>(
deserializer: D,
) -> Result<Digest, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<Digest, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<Digest> for FixedBytes<32>
impl From<Digest> for FixedBytes<32>
Source§fn from(bytes: Digest) -> FixedBytes<32>
fn from(bytes: Digest) -> FixedBytes<32>
Converts to this type from the input type.
Source§impl From<Digest> for L1InfoRoot
impl From<Digest> for L1InfoRoot
Source§fn from(digest: Digest) -> L1InfoRoot
fn from(digest: Digest) -> L1InfoRoot
Converts to this type from the input type.
Source§impl From<Digest> for LocalBalanceRoot
impl From<Digest> for LocalBalanceRoot
Source§fn from(digest: Digest) -> LocalBalanceRoot
fn from(digest: Digest) -> LocalBalanceRoot
Converts to this type from the input type.
Source§impl From<Digest> for LocalExitRoot
impl From<Digest> for LocalExitRoot
Source§fn from(digest: Digest) -> LocalExitRoot
fn from(digest: Digest) -> LocalExitRoot
Converts to this type from the input type.
Source§impl From<Digest> for LocalNullifierRoot
impl From<Digest> for LocalNullifierRoot
Source§fn from(digest: Digest) -> LocalNullifierRoot
fn from(digest: Digest) -> LocalNullifierRoot
Converts to this type from the input type.
Source§impl From<Digest> for PessimisticRoot
impl From<Digest> for PessimisticRoot
Source§fn from(digest: Digest) -> PessimisticRoot
fn from(digest: Digest) -> PessimisticRoot
Converts to this type from the input type.
Source§impl From<FixedBytes<32>> for Digest
impl From<FixedBytes<32>> for Digest
Source§fn from(bytes: FixedBytes<32>) -> Digest
fn from(bytes: FixedBytes<32>) -> Digest
Converts to this type from the input type.
Source§impl From<L1InfoRoot> for Digest
impl From<L1InfoRoot> for Digest
Source§fn from(it: L1InfoRoot) -> Digest
fn from(it: L1InfoRoot) -> Digest
Converts to this type from the input type.
Source§impl From<LocalBalanceRoot> for Digest
impl From<LocalBalanceRoot> for Digest
Source§fn from(it: LocalBalanceRoot) -> Digest
fn from(it: LocalBalanceRoot) -> Digest
Converts to this type from the input type.
Source§impl From<LocalExitRoot> for Digest
impl From<LocalExitRoot> for Digest
Source§fn from(it: LocalExitRoot) -> Digest
fn from(it: LocalExitRoot) -> Digest
Converts to this type from the input type.
Source§impl From<LocalNullifierRoot> for Digest
impl From<LocalNullifierRoot> for Digest
Source§fn from(it: LocalNullifierRoot) -> Digest
fn from(it: LocalNullifierRoot) -> Digest
Converts to this type from the input type.
Source§impl From<PessimisticRoot> for Digest
impl From<PessimisticRoot> for Digest
Source§fn from(it: PessimisticRoot) -> Digest
fn from(it: PessimisticRoot) -> Digest
Converts to this type from the input type.
Source§impl Ord for Digest
impl Ord for Digest
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 Digest
impl PartialOrd for Digest
Source§impl Serialize for Digest
impl Serialize for Digest
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
impl Copy for Digest
impl Eq for Digest
impl StructuralPartialEq for Digest
Auto Trait Implementations§
impl Freeze for Digest
impl RefUnwindSafe for Digest
impl Send for Digest
impl Sync for Digest
impl Unpin for Digest
impl UnsafeUnpin for Digest
impl UnwindSafe for Digest
Blanket Implementations§
Source§impl<T> ToHex for T
impl<T> ToHex for T
Source§fn encode_hex<U>(&self) -> Uwhere
U: FromIterator<char>,
fn encode_hex<U>(&self) -> Uwhere
U: FromIterator<char>,
👎Deprecated:
use ToHexExt instead
Encode the hex strict representing
self into the result.
Lower case letters are used (e.g. f9b4ca).Source§fn encode_hex_upper<U>(&self) -> Uwhere
U: FromIterator<char>,
fn encode_hex_upper<U>(&self) -> Uwhere
U: FromIterator<char>,
👎Deprecated:
use ToHexExt instead
Encode the hex strict representing
self into the result.
Upper case letters are used (e.g. F9B4CA).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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> ToHex for T
impl<T> ToHex for T
Source§fn encode_hex<U>(&self) -> Uwhere
U: FromIterator<char>,
fn encode_hex<U>(&self) -> Uwhere
U: FromIterator<char>,
Encode the hex strict representing
self into the result. Lower case
letters are used (e.g. f9b4ca)Source§fn encode_hex_upper<U>(&self) -> Uwhere
U: FromIterator<char>,
fn encode_hex_upper<U>(&self) -> Uwhere
U: FromIterator<char>,
Encode the hex strict representing
self into the result. Upper case
letters are used (e.g. F9B4CA)Source§impl<T> ToHexExt for T
impl<T> ToHexExt for T
Source§fn encode_hex(&self) -> String
fn encode_hex(&self) -> String
Encode the hex strict representing
self into the result.
Lower case letters are used (e.g. f9b4ca).Source§fn encode_hex_upper(&self) -> String
fn encode_hex_upper(&self) -> String
Encode the hex strict representing
self into the result.
Upper case letters are used (e.g. F9B4CA).Source§fn encode_hex_with_prefix(&self) -> String
fn encode_hex_with_prefix(&self) -> String
Encode the hex strict representing
self into the result with prefix 0x.
Lower case letters are used (e.g. 0xf9b4ca).Source§fn encode_hex_upper_with_prefix(&self) -> String
fn encode_hex_upper_with_prefix(&self) -> String
Encode the hex strict representing
self into the result with prefix 0X.
Upper case letters are used (e.g. 0xF9B4CA).