Struct glib::KeyFileFlags
source · [−]pub struct KeyFileFlags { /* private fields */ }Implementations
sourceimpl KeyFileFlags
impl KeyFileFlags
pub const NONE: KeyFileFlags = _
pub const KEEP_COMMENTS: KeyFileFlags = _
pub const KEEP_TRANSLATIONS: KeyFileFlags = _
sourcepub const fn empty() -> KeyFileFlags
pub const fn empty() -> KeyFileFlags
Returns an empty set of flags
sourcepub const fn all() -> KeyFileFlags
pub const fn all() -> KeyFileFlags
Returns the set containing all flags.
sourcepub fn from_bits(bits: u32) -> Option<KeyFileFlags>
pub fn from_bits(bits: u32) -> Option<KeyFileFlags>
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
sourcepub const fn from_bits_truncate(bits: u32) -> KeyFileFlags
pub const fn from_bits_truncate(bits: u32) -> KeyFileFlags
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
sourcepub const unsafe fn from_bits_unchecked(bits: u32) -> KeyFileFlags
pub const unsafe fn from_bits_unchecked(bits: u32) -> KeyFileFlags
Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).
sourcepub const fn intersects(&self, other: KeyFileFlags) -> bool
pub const fn intersects(&self, other: KeyFileFlags) -> bool
Returns true if there are flags common to both self and other.
sourcepub const fn contains(&self, other: KeyFileFlags) -> bool
pub const fn contains(&self, other: KeyFileFlags) -> bool
Returns true all of the flags in other are contained within self.
sourcepub fn insert(&mut self, other: KeyFileFlags)
pub fn insert(&mut self, other: KeyFileFlags)
Inserts the specified flags in-place.
sourcepub fn remove(&mut self, other: KeyFileFlags)
pub fn remove(&mut self, other: KeyFileFlags)
Removes the specified flags in-place.
sourcepub fn toggle(&mut self, other: KeyFileFlags)
pub fn toggle(&mut self, other: KeyFileFlags)
Toggles the specified flags in-place.
sourcepub fn set(&mut self, other: KeyFileFlags, value: bool)
pub fn set(&mut self, other: KeyFileFlags, value: bool)
Inserts or removes the specified flags depending on the passed value.
Trait Implementations
sourceimpl Binary for KeyFileFlags
impl Binary for KeyFileFlags
sourceimpl BitAnd<KeyFileFlags> for KeyFileFlags
impl BitAnd<KeyFileFlags> for KeyFileFlags
sourcefn bitand(self, other: KeyFileFlags) -> KeyFileFlags
fn bitand(self, other: KeyFileFlags) -> KeyFileFlags
Returns the intersection between the two sets of flags.
type Output = KeyFileFlags
type Output = KeyFileFlags
& operator.sourceimpl BitAndAssign<KeyFileFlags> for KeyFileFlags
impl BitAndAssign<KeyFileFlags> for KeyFileFlags
sourcefn bitand_assign(&mut self, other: KeyFileFlags)
fn bitand_assign(&mut self, other: KeyFileFlags)
Disables all flags disabled in the set.
sourceimpl BitOr<KeyFileFlags> for KeyFileFlags
impl BitOr<KeyFileFlags> for KeyFileFlags
sourcefn bitor(self, other: KeyFileFlags) -> KeyFileFlags
fn bitor(self, other: KeyFileFlags) -> KeyFileFlags
Returns the union of the two sets of flags.
type Output = KeyFileFlags
type Output = KeyFileFlags
| operator.sourceimpl BitOrAssign<KeyFileFlags> for KeyFileFlags
impl BitOrAssign<KeyFileFlags> for KeyFileFlags
sourcefn bitor_assign(&mut self, other: KeyFileFlags)
fn bitor_assign(&mut self, other: KeyFileFlags)
Adds the set of flags.
sourceimpl BitXor<KeyFileFlags> for KeyFileFlags
impl BitXor<KeyFileFlags> for KeyFileFlags
sourcefn bitxor(self, other: KeyFileFlags) -> KeyFileFlags
fn bitxor(self, other: KeyFileFlags) -> KeyFileFlags
Returns the left flags, but with all the right flags toggled.
type Output = KeyFileFlags
type Output = KeyFileFlags
^ operator.sourceimpl BitXorAssign<KeyFileFlags> for KeyFileFlags
impl BitXorAssign<KeyFileFlags> for KeyFileFlags
sourcefn bitxor_assign(&mut self, other: KeyFileFlags)
fn bitxor_assign(&mut self, other: KeyFileFlags)
Toggles the set of flags.
sourceimpl Clone for KeyFileFlags
impl Clone for KeyFileFlags
sourcefn clone(&self) -> KeyFileFlags
fn clone(&self) -> KeyFileFlags
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresourceimpl Debug for KeyFileFlags
impl Debug for KeyFileFlags
sourceimpl Extend<KeyFileFlags> for KeyFileFlags
impl Extend<KeyFileFlags> for KeyFileFlags
sourcefn extend<T: IntoIterator<Item = KeyFileFlags>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = KeyFileFlags>>(&mut self, iterator: T)
sourcefn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
extend_one)sourcefn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
extend_one)sourceimpl FromIterator<KeyFileFlags> for KeyFileFlags
impl FromIterator<KeyFileFlags> for KeyFileFlags
sourcefn from_iter<T: IntoIterator<Item = KeyFileFlags>>(iterator: T) -> KeyFileFlags
fn from_iter<T: IntoIterator<Item = KeyFileFlags>>(iterator: T) -> KeyFileFlags
sourceimpl Hash for KeyFileFlags
impl Hash for KeyFileFlags
sourceimpl LowerHex for KeyFileFlags
impl LowerHex for KeyFileFlags
sourceimpl Not for KeyFileFlags
impl Not for KeyFileFlags
sourcefn not(self) -> KeyFileFlags
fn not(self) -> KeyFileFlags
Returns the complement of this set of flags.
type Output = KeyFileFlags
type Output = KeyFileFlags
! operator.sourceimpl Octal for KeyFileFlags
impl Octal for KeyFileFlags
sourceimpl Ord for KeyFileFlags
impl Ord for KeyFileFlags
sourcefn cmp(&self, other: &KeyFileFlags) -> Ordering
fn cmp(&self, other: &KeyFileFlags) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
sourceimpl PartialEq<KeyFileFlags> for KeyFileFlags
impl PartialEq<KeyFileFlags> for KeyFileFlags
sourcefn eq(&self, other: &KeyFileFlags) -> bool
fn eq(&self, other: &KeyFileFlags) -> bool
sourceimpl PartialOrd<KeyFileFlags> for KeyFileFlags
impl PartialOrd<KeyFileFlags> for KeyFileFlags
sourcefn partial_cmp(&self, other: &KeyFileFlags) -> Option<Ordering>
fn partial_cmp(&self, other: &KeyFileFlags) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresourceimpl Sub<KeyFileFlags> for KeyFileFlags
impl Sub<KeyFileFlags> for KeyFileFlags
sourcefn sub(self, other: KeyFileFlags) -> KeyFileFlags
fn sub(self, other: KeyFileFlags) -> KeyFileFlags
Returns the set difference of the two sets of flags.
type Output = KeyFileFlags
type Output = KeyFileFlags
- operator.sourceimpl SubAssign<KeyFileFlags> for KeyFileFlags
impl SubAssign<KeyFileFlags> for KeyFileFlags
sourcefn sub_assign(&mut self, other: KeyFileFlags)
fn sub_assign(&mut self, other: KeyFileFlags)
Disables all flags enabled in the set.