Struct ethers_rs::Difficulty
source · Expand description
32 bytes $name
Tuple Fields§
§0: Vec<u8, Global>
Implementations§
Trait Implementations§
source§impl<'a> AsRef<[u8]> for Difficultywhere
Difficulty: 'a,
impl<'a> AsRef<[u8]> for Difficultywhere
Difficulty: 'a,
source§impl Clone for Difficulty
impl Clone for Difficulty
source§fn clone(&self) -> Difficulty
fn clone(&self) -> Difficulty
Returns a copy 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 Debug for Difficulty
impl Debug for Difficulty
source§impl Decodable for Difficulty
impl Decodable for Difficulty
source§fn decode(rlp: &Rlp<'_>) -> Result<Difficulty, DecoderError>
fn decode(rlp: &Rlp<'_>) -> Result<Difficulty, DecoderError>
Decode a value from RLP bytes
source§impl Default for Difficulty
impl Default for Difficulty
source§fn default() -> Difficulty
fn default() -> Difficulty
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for Difficulty
impl<'de> Deserialize<'de> for Difficulty
source§fn deserialize<D>(
deserializer: D
) -> Result<Difficulty, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D
) -> Result<Difficulty, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for Difficulty
impl Display for Difficulty
source§impl Encodable for Difficulty
impl Encodable for Difficulty
source§impl From<&[u8]> for Difficulty
impl From<&[u8]> for Difficulty
source§fn from(value: &[u8]) -> Difficulty
fn from(value: &[u8]) -> Difficulty
Converts to this type from the input type.
source§impl PartialEq<Difficulty> for Difficulty
impl PartialEq<Difficulty> for Difficulty
source§fn eq(&self, other: &Difficulty) -> bool
fn eq(&self, other: &Difficulty) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for Difficulty
impl Serialize for Difficulty
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<&str> for Difficulty
impl TryFrom<&str> for Difficulty
source§impl TryFrom<String> for Difficulty
impl TryFrom<String> for Difficulty
impl Eq for Difficulty
impl StructuralEq for Difficulty
impl StructuralPartialEq for Difficulty
Auto Trait Implementations§
impl RefUnwindSafe for Difficulty
impl Send for Difficulty
impl Sync for Difficulty
impl Unpin for Difficulty
impl UnwindSafe for Difficulty
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> ToHex for Twhere
T: AsRef<[u8]>,
impl<T> ToHex for Twhere
T: AsRef<[u8]>,
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
)