pub struct EnumValue(/* private fields */);Expand description
Representation of a single enum value of an EnumClass.
A structure which contains a single enum value, its name, and its
nickname.
Implementations§
Trait Implementations§
impl Copy for EnumValue
Source§impl EnumerationValue<EnumValue> for EnumValue
Define the zero value and the associated GLib type.
impl EnumerationValue<EnumValue> for EnumValue
Define the zero value and the associated GLib type.
impl Eq for EnumValue
Source§impl<'a> FromValue<'a> for &EnumValue
impl<'a> FromValue<'a> for &EnumValue
Source§type Checker = EnumTypeChecker
type Checker = EnumTypeChecker
Value type checker.
Source§unsafe fn from_value(value: &'a Value) -> Self
unsafe fn from_value(value: &'a Value) -> Self
Get the contained value from a
Value. Read moreSource§impl Ord for EnumValue
impl Ord for EnumValue
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for EnumValue
impl PartialOrd for EnumValue
impl Send for EnumValue
impl Sync for EnumValue
Source§impl UnsafeFrom<GEnumValue> for EnumValue
impl UnsafeFrom<GEnumValue> for EnumValue
Source§unsafe fn unsafe_from(g_value: GEnumValue) -> Self
unsafe fn unsafe_from(g_value: GEnumValue) -> Self
Safety Read more
Auto Trait Implementations§
impl Freeze for EnumValue
impl RefUnwindSafe for EnumValue
impl Unpin for EnumValue
impl UnsafeUnpin for EnumValue
impl UnwindSafe for EnumValue
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more