glib::enums

Type Alias FlagsValuesStorage

Source
pub type FlagsValuesStorage<const N: usize> = EnumerationValuesStorage<FlagsValue, N>;
Expand description

Storage of flags values.

Aliased Type§

struct FlagsValuesStorage<const N: usize>([FlagsValue; N]);

Fields§

§0: [FlagsValue; 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.