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§
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> 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
Source§impl PartialOrd for EnumValue
impl PartialOrd 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
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