Enum ethcore::engines::ForkChoice
source · [−]pub enum ForkChoice {
New,
Old,
}
Expand description
Fork choice.
Variants
New
Choose the new block.
Old
Choose the current best block.
Trait Implementations
sourceimpl Debug for ForkChoice
impl Debug for ForkChoice
sourceimpl PartialEq<ForkChoice> for ForkChoice
impl PartialEq<ForkChoice> for ForkChoice
impl Eq for ForkChoice
impl StructuralEq for ForkChoice
impl StructuralPartialEq for ForkChoice
Auto Trait Implementations
impl RefUnwindSafe for ForkChoice
impl Send for ForkChoice
impl Sync for ForkChoice
impl Unpin for ForkChoice
impl UnwindSafe for ForkChoice
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.