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