Struct openethereum::upgrade::UpgradeKey
source · [−]Fields
old_version: Version
new_version: Version
Implementations
sourceimpl UpgradeKey
impl UpgradeKey
fn is_applicable(
&self,
previous_version: &Version,
current_version: &Version
) -> bool
Trait Implementations
sourceimpl Hash for UpgradeKey
impl Hash for UpgradeKey
sourceimpl PartialEq<UpgradeKey> for UpgradeKey
impl PartialEq<UpgradeKey> for UpgradeKey
sourcefn eq(&self, other: &UpgradeKey) -> bool
fn eq(&self, other: &UpgradeKey) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &UpgradeKey) -> bool
fn ne(&self, other: &UpgradeKey) -> bool
This method tests for !=
.
impl Eq for UpgradeKey
impl StructuralEq for UpgradeKey
impl StructuralPartialEq for UpgradeKey
Auto Trait Implementations
impl RefUnwindSafe for UpgradeKey
impl Send for UpgradeKey
impl Sync for UpgradeKey
impl Unpin for UpgradeKey
impl UnwindSafe for UpgradeKey
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcepub fn equivalent(&self, key: &K) -> bool
pub fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.