Skip to main content

Hardfork

Trait Hardfork 

pub trait Hardfork:
    Any
    + DynClone
    + Send
    + Sync
    + 'static {
    // Required method
    fn name(&self) -> &'static str;

    // Provided method
    fn boxed(&self) -> Box<dyn Hardfork + '_> { ... }
}
Expand description

Re-export for convenience Generic hardfork trait.

Required Methods§

fn name(&self) -> &'static str

Fork name.

Provided Methods§

fn boxed(&self) -> Box<dyn Hardfork + '_>

Returns boxed value.

Trait Implementations§

§

impl<'clone> Clone for Box<dyn Hardfork + 'clone>

§

fn clone(&self) -> Box<dyn Hardfork + 'clone>

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl<'clone> Clone for Box<dyn Hardfork + Send + 'clone>

§

fn clone(&self) -> Box<dyn Hardfork + Send + 'clone>

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl<'clone> Clone for Box<dyn Hardfork + Sync + 'clone>

§

fn clone(&self) -> Box<dyn Hardfork + Sync + 'clone>

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl<'clone> Clone for Box<dyn Hardfork + Sync + Send + 'clone>

§

fn clone(&self) -> Box<dyn Hardfork + Sync + Send + 'clone>

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for dyn Hardfork

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Eq for dyn Hardfork

§

impl Hash for dyn Hardfork

§

fn hash<H>(&self, state: &mut H)
where H: Hasher,

Feeds this value into the given Hasher. Read more
§

impl PartialEq for dyn Hardfork

§

fn eq(&self, other: &(dyn Hardfork + 'static)) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

§

impl<'a, T> Hardfork for &'a T
where T: 'a + Hardfork + ?Sized, &'a T: Any + DynClone + Send + Sync + 'static,

§

fn name(&self) -> &'static str

§

fn boxed(&self) -> Box<dyn Hardfork + '_>

§

impl<T> Hardfork for Box<T>
where T: Hardfork + ?Sized, Box<T>: Any + DynClone + Send + Sync + 'static,

§

fn name(&self) -> &'static str

§

fn boxed(&self) -> Box<dyn Hardfork + '_>

Implementors§