Skip to main content

EnumerationValue

Trait EnumerationValue 

Source
pub trait EnumerationValue<E>: Copy {
    type GlibType;

    const ZERO: E;
}
Expand description

helper trait to define the zero value and the associated GLib type.

Required Associated Constants§

Source

const ZERO: E

Required Associated Types§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl EnumerationValue<EnumValue> for EnumValue

Define the zero value and the associated GLib type.

Source§

const ZERO: EnumValue

Source§

type GlibType = GEnumValue

Source§

impl EnumerationValue<FlagsValue> for FlagsValue

Define the zero value and the associated GLib type.

Source§

const ZERO: FlagsValue

Source§

type GlibType = GFlagsValue