pub struct EnumValue(/* private fields */);
Expand description
Representation of a single enum value of an EnumClass
.
Implementations§
source§impl EnumValue
impl EnumValue
sourcepub const unsafe fn unsafe_from(g_value: GEnumValue) -> Self
pub const unsafe fn unsafe_from(g_value: GEnumValue) -> Self
§Safety
It is the responsibility of the caller to ensure GEnumValue
is
valid.
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§
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