referrerpolicy=no-referrer-when-downgrade

Trait frame_support::traits::VariantCount

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

Trait to get the number of variants in any enum.

Required Associated Constants§

source

const VARIANT_COUNT: u32

Get the number of variants.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl VariantCount for u8

source§

const VARIANT_COUNT: u32 = 256u32

source§

impl VariantCount for ()

Implementors§