Trait 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.

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.

Implementations on Foreign Types§

Source§

impl Group for u8

Source§

type Fork = u8

Source§

fn to_fork(self) -> Self::Fork

Source§

impl Group for u16

Source§

type Fork = u16

Source§

fn to_fork(self) -> Self::Fork

Source§

impl Group for u32

Source§

type Fork = u32

Source§

fn to_fork(self) -> Self::Fork

Source§

impl Group for u64

Source§

type Fork = u64

Source§

fn to_fork(self) -> Self::Fork

Source§

impl Group for ()

Source§

type Fork = ()

Source§

fn to_fork(self) -> Self::Fork

Source§

impl Group for usize

Source§

type Fork = usize

Source§

fn to_fork(self) -> Self::Fork

Source§

impl Group for String

Source§

type Fork = String

Source§

fn to_fork(self) -> Self::Fork

Source§

impl Group for Vec<u8>

Source§

type Fork = Vec<u8>

Source§

fn to_fork(self) -> Self::Fork

Source§

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

Source§

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

Source§

fn to_fork(self) -> Self::Fork

Implementors§