Struct glib::FlagsValue
source · [−]#[repr(transparent)]pub struct FlagsValue(_);
Expand description
Representation of a single flags value of a FlagsClass
.
Implementations
sourceimpl 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
sourceimpl Debug for FlagsValue
impl Debug for FlagsValue
sourceimpl PartialEq<FlagsValue> for FlagsValue
impl PartialEq<FlagsValue> for FlagsValue
impl Eq for FlagsValue
impl Send for FlagsValue
impl Sync for FlagsValue
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more