Struct gio::AskPasswordFlags
source · [−]pub struct AskPasswordFlags { /* private fields */ }Implementations
sourceimpl AskPasswordFlags
impl AskPasswordFlags
pub const NEED_PASSWORD: AskPasswordFlags = _
pub const NEED_USERNAME: AskPasswordFlags = _
pub const NEED_DOMAIN: AskPasswordFlags = _
pub const SAVING_SUPPORTED: AskPasswordFlags = _
pub const ANONYMOUS_SUPPORTED: AskPasswordFlags = _
pub const TCRYPT: AskPasswordFlags = _
sourcepub const fn empty() -> AskPasswordFlags
pub const fn empty() -> AskPasswordFlags
Returns an empty set of flags
sourcepub const fn all() -> AskPasswordFlags
pub const fn all() -> AskPasswordFlags
Returns the set containing all flags.
sourcepub fn from_bits(bits: u32) -> Option<AskPasswordFlags>
pub fn from_bits(bits: u32) -> Option<AskPasswordFlags>
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) -> AskPasswordFlags
pub const fn from_bits_truncate(bits: u32) -> AskPasswordFlags
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
sourcepub const unsafe fn from_bits_unchecked(bits: u32) -> AskPasswordFlags
pub const unsafe fn from_bits_unchecked(bits: u32) -> AskPasswordFlags
Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).
sourcepub const fn intersects(&self, other: AskPasswordFlags) -> bool
pub const fn intersects(&self, other: AskPasswordFlags) -> bool
Returns true if there are flags common to both self and other.
sourcepub const fn contains(&self, other: AskPasswordFlags) -> bool
pub const fn contains(&self, other: AskPasswordFlags) -> bool
Returns true all of the flags in other are contained within self.
sourcepub fn insert(&mut self, other: AskPasswordFlags)
pub fn insert(&mut self, other: AskPasswordFlags)
Inserts the specified flags in-place.
sourcepub fn remove(&mut self, other: AskPasswordFlags)
pub fn remove(&mut self, other: AskPasswordFlags)
Removes the specified flags in-place.
sourcepub fn toggle(&mut self, other: AskPasswordFlags)
pub fn toggle(&mut self, other: AskPasswordFlags)
Toggles the specified flags in-place.
sourcepub fn set(&mut self, other: AskPasswordFlags, value: bool)
pub fn set(&mut self, other: AskPasswordFlags, value: bool)
Inserts or removes the specified flags depending on the passed value.
Trait Implementations
sourceimpl Binary for AskPasswordFlags
impl Binary for AskPasswordFlags
sourceimpl BitAnd<AskPasswordFlags> for AskPasswordFlags
impl BitAnd<AskPasswordFlags> for AskPasswordFlags
sourcefn bitand(self, other: AskPasswordFlags) -> AskPasswordFlags
fn bitand(self, other: AskPasswordFlags) -> AskPasswordFlags
Returns the intersection between the two sets of flags.
type Output = AskPasswordFlags
type Output = AskPasswordFlags
& operator.sourceimpl BitAndAssign<AskPasswordFlags> for AskPasswordFlags
impl BitAndAssign<AskPasswordFlags> for AskPasswordFlags
sourcefn bitand_assign(&mut self, other: AskPasswordFlags)
fn bitand_assign(&mut self, other: AskPasswordFlags)
Disables all flags disabled in the set.
sourceimpl BitOr<AskPasswordFlags> for AskPasswordFlags
impl BitOr<AskPasswordFlags> for AskPasswordFlags
sourcefn bitor(self, other: AskPasswordFlags) -> AskPasswordFlags
fn bitor(self, other: AskPasswordFlags) -> AskPasswordFlags
Returns the union of the two sets of flags.
type Output = AskPasswordFlags
type Output = AskPasswordFlags
| operator.sourceimpl BitOrAssign<AskPasswordFlags> for AskPasswordFlags
impl BitOrAssign<AskPasswordFlags> for AskPasswordFlags
sourcefn bitor_assign(&mut self, other: AskPasswordFlags)
fn bitor_assign(&mut self, other: AskPasswordFlags)
Adds the set of flags.
sourceimpl BitXor<AskPasswordFlags> for AskPasswordFlags
impl BitXor<AskPasswordFlags> for AskPasswordFlags
sourcefn bitxor(self, other: AskPasswordFlags) -> AskPasswordFlags
fn bitxor(self, other: AskPasswordFlags) -> AskPasswordFlags
Returns the left flags, but with all the right flags toggled.
type Output = AskPasswordFlags
type Output = AskPasswordFlags
^ operator.sourceimpl BitXorAssign<AskPasswordFlags> for AskPasswordFlags
impl BitXorAssign<AskPasswordFlags> for AskPasswordFlags
sourcefn bitxor_assign(&mut self, other: AskPasswordFlags)
fn bitxor_assign(&mut self, other: AskPasswordFlags)
Toggles the set of flags.
sourceimpl Clone for AskPasswordFlags
impl Clone for AskPasswordFlags
sourcefn clone(&self) -> AskPasswordFlags
fn clone(&self) -> AskPasswordFlags
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresourceimpl Debug for AskPasswordFlags
impl Debug for AskPasswordFlags
sourceimpl Extend<AskPasswordFlags> for AskPasswordFlags
impl Extend<AskPasswordFlags> for AskPasswordFlags
sourcefn extend<T: IntoIterator<Item = AskPasswordFlags>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = AskPasswordFlags>>(&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<AskPasswordFlags> for AskPasswordFlags
impl FromIterator<AskPasswordFlags> for AskPasswordFlags
sourcefn from_iter<T: IntoIterator<Item = AskPasswordFlags>>(
iterator: T
) -> AskPasswordFlags
fn from_iter<T: IntoIterator<Item = AskPasswordFlags>>(
iterator: T
) -> AskPasswordFlags
sourceimpl<'a> FromValue<'a> for AskPasswordFlags
impl<'a> FromValue<'a> for AskPasswordFlags
unsafe fn from_value(value: &Value) -> Self
sourceimpl<'a> FromValueOptional<'a> for AskPasswordFlags
impl<'a> FromValueOptional<'a> for AskPasswordFlags
unsafe fn from_value_optional(value: &Value) -> Option<Self>
sourceimpl Hash for AskPasswordFlags
impl Hash for AskPasswordFlags
sourceimpl LowerHex for AskPasswordFlags
impl LowerHex for AskPasswordFlags
sourceimpl Not for AskPasswordFlags
impl Not for AskPasswordFlags
sourcefn not(self) -> AskPasswordFlags
fn not(self) -> AskPasswordFlags
Returns the complement of this set of flags.
type Output = AskPasswordFlags
type Output = AskPasswordFlags
! operator.sourceimpl Octal for AskPasswordFlags
impl Octal for AskPasswordFlags
sourceimpl Ord for AskPasswordFlags
impl Ord for AskPasswordFlags
sourcefn cmp(&self, other: &AskPasswordFlags) -> Ordering
fn cmp(&self, other: &AskPasswordFlags) -> 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<AskPasswordFlags> for AskPasswordFlags
impl PartialEq<AskPasswordFlags> for AskPasswordFlags
sourcefn eq(&self, other: &AskPasswordFlags) -> bool
fn eq(&self, other: &AskPasswordFlags) -> bool
sourceimpl PartialOrd<AskPasswordFlags> for AskPasswordFlags
impl PartialOrd<AskPasswordFlags> for AskPasswordFlags
sourcefn partial_cmp(&self, other: &AskPasswordFlags) -> Option<Ordering>
fn partial_cmp(&self, other: &AskPasswordFlags) -> 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 StaticType for AskPasswordFlags
impl StaticType for AskPasswordFlags
sourcefn static_type() -> Type
fn static_type() -> Type
Self.sourceimpl Sub<AskPasswordFlags> for AskPasswordFlags
impl Sub<AskPasswordFlags> for AskPasswordFlags
sourcefn sub(self, other: AskPasswordFlags) -> AskPasswordFlags
fn sub(self, other: AskPasswordFlags) -> AskPasswordFlags
Returns the set difference of the two sets of flags.
type Output = AskPasswordFlags
type Output = AskPasswordFlags
- operator.sourceimpl SubAssign<AskPasswordFlags> for AskPasswordFlags
impl SubAssign<AskPasswordFlags> for AskPasswordFlags
sourcefn sub_assign(&mut self, other: AskPasswordFlags)
fn sub_assign(&mut self, other: AskPasswordFlags)
Disables all flags enabled in the set.
sourceimpl UpperHex for AskPasswordFlags
impl UpperHex for AskPasswordFlags
impl Copy for AskPasswordFlags
impl Eq for AskPasswordFlags
impl StructuralEq for AskPasswordFlags
impl StructuralPartialEq for AskPasswordFlags
Auto Trait Implementations
impl RefUnwindSafe for AskPasswordFlags
impl Send for AskPasswordFlags
impl Sync for AskPasswordFlags
impl Unpin for AskPasswordFlags
impl UnwindSafe for AskPasswordFlags
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
sourceimpl<T> ToSendValue for Twhere
T: SetValue + Send + ToValue + ?Sized,
impl<T> ToSendValue for Twhere
T: SetValue + Send + ToValue + ?Sized,
sourcefn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
SendValue clone of self.