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