pub struct PessimisticRoot(/* private fields */);Implementations§
Source§impl PessimisticRoot
impl PessimisticRoot
pub const fn new(digest: Digest) -> PessimisticRoot
Trait Implementations§
Source§impl AsRef<[u8]> for PessimisticRoot
impl AsRef<[u8]> for PessimisticRoot
Source§impl AsRef<Digest> for PessimisticRoot
impl AsRef<Digest> for PessimisticRoot
Source§impl Clone for PessimisticRoot
impl Clone for PessimisticRoot
Source§fn clone(&self) -> PessimisticRoot
fn clone(&self) -> PessimisticRoot
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PessimisticRoot
impl Debug for PessimisticRoot
Source§impl Default for PessimisticRoot
impl Default for PessimisticRoot
Source§fn default() -> PessimisticRoot
fn default() -> PessimisticRoot
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PessimisticRoot
impl<'de> Deserialize<'de> for PessimisticRoot
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<PessimisticRoot, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PessimisticRoot, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for PessimisticRoot
impl Display for PessimisticRoot
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 PessimisticRoot
impl From<FixedBytes<32>> for PessimisticRoot
Source§fn from(value: FixedBytes<32>) -> PessimisticRoot
fn from(value: FixedBytes<32>) -> PessimisticRoot
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 From<PessimisticRoot> for FixedBytes<32>
impl From<PessimisticRoot> for FixedBytes<32>
Source§fn from(value: PessimisticRoot) -> FixedBytes<32>
fn from(value: PessimisticRoot) -> FixedBytes<32>
Converts to this type from the input type.
Source§impl LowerHex for PessimisticRoot
impl LowerHex for PessimisticRoot
Source§impl Ord for PessimisticRoot
impl Ord for PessimisticRoot
Source§fn cmp(&self, other: &PessimisticRoot) -> Ordering
fn cmp(&self, other: &PessimisticRoot) -> Ordering
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 PartialEq for PessimisticRoot
impl PartialEq for PessimisticRoot
Source§fn eq(&self, other: &PessimisticRoot) -> bool
fn eq(&self, other: &PessimisticRoot) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for PessimisticRoot
impl PartialOrd for PessimisticRoot
Source§impl Serialize for PessimisticRoot
impl Serialize for PessimisticRoot
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 TryFrom<&[u8]> for PessimisticRoot
impl TryFrom<&[u8]> for PessimisticRoot
Source§type Error = TryFromSliceError
type Error = TryFromSliceError
The type returned in the event of a conversion error.
Source§fn try_from(
value: &[u8],
) -> Result<PessimisticRoot, <PessimisticRoot as TryFrom<&[u8]>>::Error>
fn try_from( value: &[u8], ) -> Result<PessimisticRoot, <PessimisticRoot as TryFrom<&[u8]>>::Error>
Performs the conversion.
Source§impl UpperHex for PessimisticRoot
impl UpperHex for PessimisticRoot
impl Copy for PessimisticRoot
impl Eq for PessimisticRoot
impl StructuralPartialEq for PessimisticRoot
Auto Trait Implementations§
impl Freeze for PessimisticRoot
impl RefUnwindSafe for PessimisticRoot
impl Send for PessimisticRoot
impl Sync for PessimisticRoot
impl Unpin for PessimisticRoot
impl UnsafeUnpin for PessimisticRoot
impl UnwindSafe for PessimisticRoot
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).