Trait glib::enums::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 Types§

Required Associated Constants§

source

const ZERO: E

Object Safety§

This trait is not object safe.

Implementors§

source§

impl EnumerationValue<EnumValue> for EnumValue

Define the zero value and the associated GLib type.

§

type GlibType = GEnumValue

source§

const ZERO: EnumValue = _

source§

impl EnumerationValue<FlagsValue> for FlagsValue

Define the zero value and the associated GLib type.

§

type GlibType = GFlagsValue

source§

const ZERO: FlagsValue = _