referrerpolicy=no-referrer-when-downgrade

Trait polkadot_sdk_frame::traits::VariantCount

pub trait VariantCount {
    const VARIANT_COUNT: u32;
}
Expand description

Trait to get the number of variants in any enum.

Required Associated Constants§

const VARIANT_COUNT: u32

Get the number of variants.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

§

impl VariantCount for u8

§

const VARIANT_COUNT: u32 = 256u32

§

impl VariantCount for ()

§

const VARIANT_COUNT: u32 = 0u32

Implementors§