Struct sc_chain_spec::Forks [−][src]
Implementations
impl<B: Ord, T: Group> Forks<B, T> where
T::Fork: Debug,
[src]
T::Fork: Debug,
pub fn new(base: T, forks: BTreeMap<B, T::Fork>) -> Self
[src]
Create new fork definition given the base and the forks.
pub fn at_block(&self, block: B) -> T
[src]
Return a set of parameters for Group
including all forks up to block
(inclusive).
impl<B: Ord + Clone, T: Group + Extension> Forks<B, T> where
T::Fork: Extension,
[src]
T::Fork: Extension,
pub fn for_type<X>(&self) -> Option<Forks<B, X>> where
X: Group + 'static,
[src]
X: Group + 'static,
Get forks definition for a subset of this extension.
Returns the Forks
struct, but limited to a particular type
within the extension.
Trait Implementations
impl<BlockNumber: Clone + Ord, T: Clone + Group> Clone for Forks<BlockNumber, T> where
T::Fork: Clone,
[src]
T::Fork: Clone,
impl<BlockNumber: Debug + Ord, T: Debug + Group> Debug for Forks<BlockNumber, T> where
T::Fork: Debug,
[src]
T::Fork: Debug,
impl<B: Ord, T: Group + Default> Default for Forks<B, T>
[src]
impl<'de, BlockNumber: Ord, T: Group> Deserialize<'de> for Forks<BlockNumber, T> where
BlockNumber: Deserialize<'de>,
T: Deserialize<'de>,
[src]
BlockNumber: Deserialize<'de>,
T: Deserialize<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl<B, E> Extension for Forks<B, E> where
B: Serialize + DeserializeOwned + Ord + Clone + 'static,
E: Extension + Group + 'static,
[src]
B: Serialize + DeserializeOwned + Ord + Clone + 'static,
E: Extension + Group + 'static,
type Forks = Self
fn get<T: 'static>(&self) -> Option<&T>
[src]
fn get_any(&self, t: TypeId) -> &dyn Any
[src]
fn forks<BlockNumber, T>(&self) -> Option<Forks<BlockNumber, T>> where
BlockNumber: Ord + Clone + 'static,
T: Group + 'static,
<Self::Forks as IsForks>::Extension: Extension,
<<Self::Forks as IsForks>::Extension as Group>::Fork: Extension,
[src]
BlockNumber: Ord + Clone + 'static,
T: Group + 'static,
<Self::Forks as IsForks>::Extension: Extension,
<<Self::Forks as IsForks>::Extension as Group>::Fork: Extension,
impl<BlockNumber: PartialEq + Ord, T: PartialEq + Group> PartialEq<Forks<BlockNumber, T>> for Forks<BlockNumber, T> where
T::Fork: PartialEq,
[src]
T::Fork: PartialEq,
fn eq(&self, other: &Forks<BlockNumber, T>) -> bool
[src]
fn ne(&self, other: &Forks<BlockNumber, T>) -> bool
[src]
impl<BlockNumber: Ord, T: Group> Serialize for Forks<BlockNumber, T> where
BlockNumber: Serialize,
T: Serialize,
[src]
BlockNumber: Serialize,
T: Serialize,
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<BlockNumber: Ord, T: Group> StructuralPartialEq for Forks<BlockNumber, T>
[src]
Auto Trait Implementations
impl<BlockNumber, T> RefUnwindSafe for Forks<BlockNumber, T> where
BlockNumber: RefUnwindSafe,
T: RefUnwindSafe,
<T as Group>::Fork: RefUnwindSafe,
BlockNumber: RefUnwindSafe,
T: RefUnwindSafe,
<T as Group>::Fork: RefUnwindSafe,
impl<BlockNumber, T> Send for Forks<BlockNumber, T> where
BlockNumber: Send,
T: Send,
<T as Group>::Fork: Send,
BlockNumber: Send,
T: Send,
<T as Group>::Fork: Send,
impl<BlockNumber, T> Sync for Forks<BlockNumber, T> where
BlockNumber: Sync,
T: Sync,
<T as Group>::Fork: Sync,
BlockNumber: Sync,
T: Sync,
<T as Group>::Fork: Sync,
impl<BlockNumber, T> Unpin for Forks<BlockNumber, T> where
T: Unpin,
T: Unpin,
impl<BlockNumber, T> UnwindSafe for Forks<BlockNumber, T> where
BlockNumber: RefUnwindSafe,
T: UnwindSafe,
<T as Group>::Fork: RefUnwindSafe,
BlockNumber: RefUnwindSafe,
T: UnwindSafe,
<T as Group>::Fork: RefUnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> CheckedConversion for T
[src]
pub fn checked_from<T>(t: T) -> Option<Self> where
Self: TryFrom<T>,
[src]
Self: TryFrom<T>,
pub fn checked_into<T>(self) -> Option<T> where
Self: TryInto<T>,
[src]
Self: TryInto<T>,
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> DynClone for T where
T: Clone,
[src]
T: Clone,
pub fn __clone_box(&self, Private) -> *mut ()
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, Outer> IsWrappedBy<Outer> for T where
T: From<Outer>,
Outer: AsRef<T> + AsMut<T> + From<T>,
[src]
T: From<Outer>,
Outer: AsRef<T> + AsMut<T> + From<T>,
pub fn from_ref(outer: &Outer) -> &T
[src]
Get a reference to the inner from the outer.
pub fn from_mut(outer: &mut Outer) -> &mut T
[src]
Get a mutable reference to the inner from the outer.
impl<T> MaybeDebug for T where
T: Debug,
[src]
T: Debug,
impl<T> MaybeDebug for T where
T: Debug,
[src]
T: Debug,
impl<T> MaybeRefUnwindSafe for T where
T: RefUnwindSafe,
[src]
T: RefUnwindSafe,
impl<T> MaybeSerialize for T where
T: Serialize,
[src]
T: Serialize,
impl<T> MaybeSerializeDeserialize for T where
T: DeserializeOwned + Serialize,
[src]
T: DeserializeOwned + Serialize,
impl<T> Pointable for T
[src]
pub const ALIGN: usize
[src]
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
[src]
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
[src]
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
[src]
pub unsafe fn drop(ptr: usize)
[src]
impl<T> Same<T> for T
[src]
type Output = T
Should always be Self
impl<T> SaturatedConversion for T
[src]
pub fn saturated_from<T>(t: T) -> Self where
Self: UniqueSaturatedFrom<T>,
[src]
Self: UniqueSaturatedFrom<T>,
pub fn saturated_into<T>(self) -> T where
Self: UniqueSaturatedInto<T>,
[src]
Self: UniqueSaturatedInto<T>,
impl<T> SendSyncUnwindSafe for T where
T: Send + Sync + UnwindSafe + ?Sized,
[src]
T: Send + Sync + UnwindSafe + ?Sized,
impl<T> Serialize for T where
T: Serialize + ?Sized,
[src]
T: Serialize + ?Sized,
pub fn erased_serialize(
&self,
serializer: &mut dyn Serializer
) -> Result<Ok, Error>
[src]
&self,
serializer: &mut dyn Serializer
) -> Result<Ok, Error>
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<S, T> UncheckedInto<T> for S where
T: UncheckedFrom<S>,
[src]
T: UncheckedFrom<S>,
pub fn unchecked_into(self) -> T
[src]
impl<T, S> UniqueSaturatedInto<T> for S where
T: Bounded,
S: TryInto<T>,
[src]
T: Bounded,
S: TryInto<T>,
pub fn unique_saturated_into(self) -> T
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src]
V: MultiLane<T>,