pub trait Fork:
Serialize
+ DeserializeOwned
+ Clone
+ Sized {
type Base: Group<Fork = Self>;
// Required methods
fn combine_with(&mut self, other: Self);
fn to_base(self) -> Option<Self::Base>;
}
Expand description
A ChainSpec
extension fork definition.
Basically should look the same as Group
, but
all parameters are optional. This allows changing
only one parameter as part of the fork.
The forks can be combined (summed up) to specify
a complete set of parameters
Required Associated Types§
Required Methods§
Sourcefn combine_with(&mut self, other: Self)
fn combine_with(&mut self, other: Self)
Combine with another struct.
All parameters set in other
should override the
ones in the current struct.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.