Struct glib::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 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 Debug for FlagsValue
impl Debug for FlagsValue
source§impl PartialEq for FlagsValue
impl PartialEq 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