glib::enums

Type Alias EnumValuesStorage

Source
pub type EnumValuesStorage<const N: usize> = EnumerationValuesStorage<EnumValue, N>;
Expand description

Storage of enum values.

Aliased Type§

struct EnumValuesStorage<const N: usize>([EnumValue; N]);

Fields§

§0: [EnumValue; N]

Implementations

Source§

impl<E: EnumerationValue<E>, const S: usize> EnumerationValuesStorage<E, S>

Source

pub const fn new<const N: usize>(values: [E; N]) -> Self

creates a new EnumerationValuesStorage with the given values and a final zero value.

Trait Implementations

Source§

impl<E: EnumerationValue<E>, const S: usize> AsRef<EnumerationValues<E>> for EnumerationValuesStorage<E, S>

Source§

fn as_ref(&self) -> &EnumerationValues<E>

Converts this type into a shared reference of the (usually inferred) input type.