pub struct EnumValue(/* private fields */);
Expand description
Representation of a single enum value of an EnumClass
.
Implementations§
Trait Implementations§
source§impl EnumerationValue<EnumValue> for EnumValue
impl EnumerationValue<EnumValue> for EnumValue
Define the zero value and the associated GLib type.
source§impl<'a, 'b> FromValue<'a> for &'b EnumValue
impl<'a, 'b> FromValue<'a> for &'b EnumValue
§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
source§impl PartialEq for EnumValue
impl PartialEq for EnumValue
source§impl PartialOrd for EnumValue
impl PartialOrd for EnumValue
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§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
impl Copy for EnumValue
impl Eq for EnumValue
impl Send for EnumValue
impl Sync for EnumValue
Auto Trait Implementations§
impl Freeze for EnumValue
impl RefUnwindSafe for EnumValue
impl Unpin 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)