#[repr(transparent)]pub struct FlagsValue(GFlagsValue);Expand description
Representation of a single flags value of a FlagsClass.
Tuple Fields§
§0: GFlagsValueImplementations§
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 duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for FlagsValue
Source§impl Debug for FlagsValue
impl Debug for FlagsValue
Source§impl EnumerationValue<FlagsValue> for FlagsValue
Define the zero value and the associated GLib type.
impl EnumerationValue<FlagsValue> for FlagsValue
Define the zero value and the associated GLib type.
const ZERO: FlagsValue
type GlibType = GFlagsValue
impl Eq for FlagsValue
Source§impl PartialEq for FlagsValue
impl PartialEq for FlagsValue
impl Send for FlagsValue
impl Sync 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
Auto Trait Implementations§
impl Freeze for FlagsValue
impl RefUnwindSafe for FlagsValue
impl Unpin for FlagsValue
impl UnsafeUnpin 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