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.
type GlibType = GFlagsValue
const ZERO: FlagsValue = _
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§
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