Struct glib::enums::FlagsValue
source · pub struct FlagsValue(/* private fields */);
Expand description
Representation of a single flags value of a FlagsClass
.
Implementations§
source§impl FlagsValue
impl FlagsValue
sourcepub const unsafe fn unsafe_from(g_value: GFlagsValue) -> Self
pub const unsafe fn unsafe_from(g_value: GFlagsValue) -> Self
§Safety
It is the responsibility of the caller to ensure GFlagsValue
is
valid.
sourcepub fn to_value(&self, flags: &FlagsClass) -> Value
pub fn to_value(&self, flags: &FlagsClass) -> Value
Convert flags value to a Value
.
sourcepub fn from_value(value: &Value) -> Option<(FlagsClass, Vec<&FlagsValue>)>
pub fn from_value(value: &Value) -> Option<(FlagsClass, Vec<&FlagsValue>)>
Convert flags values from a Value
. This returns all flags that are set.
Trait Implementations§
source§impl Clone for FlagsValue
impl Clone for FlagsValue
source§fn clone(&self) -> FlagsValue
fn clone(&self) -> FlagsValue
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for FlagsValue
impl Debug for FlagsValue
source§impl EnumerationValue<FlagsValue> for FlagsValue
impl EnumerationValue<FlagsValue> for FlagsValue
Define the zero value and the associated GLib type.
source§impl PartialEq for FlagsValue
impl PartialEq for FlagsValue
source§impl UnsafeFrom<GFlagsValue> for FlagsValue
impl UnsafeFrom<GFlagsValue> for FlagsValue
source§unsafe fn unsafe_from(g_value: GFlagsValue) -> Self
unsafe fn unsafe_from(g_value: GFlagsValue) -> Self
Safety Read more
impl Copy for FlagsValue
impl Eq for FlagsValue
impl Send for FlagsValue
impl Sync for FlagsValue
Auto Trait Implementations§
impl Freeze for FlagsValue
impl RefUnwindSafe for FlagsValue
impl Unpin for FlagsValue
impl UnwindSafe for FlagsValue
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
)