referrerpolicy=no-referrer-when-downgrade

Trait sc_chain_spec::Group

source ·
pub trait Group: Clone + Sized {
    type Fork: Fork<Base = Self>;

    // Required method
    fn to_fork(self) -> Self::Fork;
}
Expand description

A ChainSpec extension.

This trait is implemented automatically by ChainSpecGroup macro.

Required Associated Types§

source

type Fork: Fork<Base = Self>

An associated type containing fork definition.

Required Methods§

source

fn to_fork(self) -> Self::Fork

Convert to fork type.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl Group for u8

§

type Fork = u8

source§

fn to_fork(self) -> Self::Fork

source§

impl Group for u16

§

type Fork = u16

source§

fn to_fork(self) -> Self::Fork

source§

impl Group for u32

§

type Fork = u32

source§

fn to_fork(self) -> Self::Fork

source§

impl Group for u64

§

type Fork = u64

source§

fn to_fork(self) -> Self::Fork

source§

impl Group for ()

§

type Fork = ()

source§

fn to_fork(self) -> Self::Fork

source§

impl Group for usize

§

type Fork = usize

source§

fn to_fork(self) -> Self::Fork

source§

impl Group for String

§

type Fork = String

source§

fn to_fork(self) -> Self::Fork

source§

impl Group for Vec<u8>

§

type Fork = Vec<u8>

source§

fn to_fork(self) -> Self::Fork

source§

impl<T: Group> Group for Option<T>

§

type Fork = Option<<T as Group>::Fork>

source§

fn to_fork(self) -> Self::Fork

Implementors§