Enum ForkFilterKey
pub enum ForkFilterKey {
Block(u64),
Time(u64),
}
Expand description
Re-exported EIP-2124 forkid types. How to filter forks.
Variants§
Trait Implementations§
§impl Clone for ForkFilterKey
impl Clone for ForkFilterKey
§fn clone(&self) -> ForkFilterKey
fn clone(&self) -> ForkFilterKey
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 more§impl Debug for ForkFilterKey
impl Debug for ForkFilterKey
§impl<'de> Deserialize<'de> for ForkFilterKey
impl<'de> Deserialize<'de> for ForkFilterKey
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ForkFilterKey, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ForkFilterKey, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl Ord for ForkFilterKey
impl Ord for ForkFilterKey
§impl PartialEq for ForkFilterKey
impl PartialEq for ForkFilterKey
§impl PartialOrd for ForkFilterKey
impl PartialOrd for ForkFilterKey
§impl Serialize for ForkFilterKey
impl Serialize for ForkFilterKey
§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 ForkFilterKey
impl Eq for ForkFilterKey
impl StructuralPartialEq for ForkFilterKey
Auto Trait Implementations§
impl Freeze for ForkFilterKey
impl RefUnwindSafe for ForkFilterKey
impl Send for ForkFilterKey
impl Sync for ForkFilterKey
impl Unpin for ForkFilterKey
impl UnwindSafe for ForkFilterKey
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,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 16 bytes
Size for each variant:
Block
: 8 bytesTime
: 8 bytes