pub struct AskPasswordFlags { /* private fields */ }
Implementations§
Source§impl 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§
Source§impl Binary for AskPasswordFlags
impl Binary for AskPasswordFlags
Source§impl BitAnd for AskPasswordFlags
impl BitAnd for AskPasswordFlags
Source§fn bitand(self, other: AskPasswordFlags) -> AskPasswordFlags
fn bitand(self, other: AskPasswordFlags) -> AskPasswordFlags
Returns the intersection between the two sets of flags.
Source§type Output = AskPasswordFlags
type Output = AskPasswordFlags
&
operator.Source§impl BitAndAssign for AskPasswordFlags
impl BitAndAssign for AskPasswordFlags
Source§fn bitand_assign(&mut self, other: AskPasswordFlags)
fn bitand_assign(&mut self, other: AskPasswordFlags)
Disables all flags disabled in the set.
Source§impl BitOr for AskPasswordFlags
impl BitOr for AskPasswordFlags
Source§fn bitor(self, other: AskPasswordFlags) -> AskPasswordFlags
fn bitor(self, other: AskPasswordFlags) -> AskPasswordFlags
Returns the union of the two sets of flags.
Source§type Output = AskPasswordFlags
type Output = AskPasswordFlags
|
operator.Source§impl BitOrAssign for AskPasswordFlags
impl BitOrAssign for AskPasswordFlags
Source§fn bitor_assign(&mut self, other: AskPasswordFlags)
fn bitor_assign(&mut self, other: AskPasswordFlags)
Adds the set of flags.
Source§impl BitXor for AskPasswordFlags
impl BitXor for AskPasswordFlags
Source§fn bitxor(self, other: AskPasswordFlags) -> AskPasswordFlags
fn bitxor(self, other: AskPasswordFlags) -> AskPasswordFlags
Returns the left flags, but with all the right flags toggled.
Source§type Output = AskPasswordFlags
type Output = AskPasswordFlags
^
operator.Source§impl BitXorAssign for AskPasswordFlags
impl BitXorAssign for AskPasswordFlags
Source§fn bitxor_assign(&mut self, other: AskPasswordFlags)
fn bitxor_assign(&mut self, other: AskPasswordFlags)
Toggles the set of flags.
Source§impl Clone for AskPasswordFlags
impl Clone for AskPasswordFlags
Source§fn clone(&self) -> AskPasswordFlags
fn clone(&self) -> AskPasswordFlags
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for AskPasswordFlags
impl Debug for AskPasswordFlags
Source§impl Extend<AskPasswordFlags> for AskPasswordFlags
impl Extend<AskPasswordFlags> for AskPasswordFlags
Source§fn extend<T: IntoIterator<Item = AskPasswordFlags>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = AskPasswordFlags>>(&mut self, iterator: T)
Source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
extend_one
)Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
extend_one
)Source§impl FromIterator<AskPasswordFlags> for AskPasswordFlags
impl FromIterator<AskPasswordFlags> for AskPasswordFlags
Source§fn from_iter<T: IntoIterator<Item = AskPasswordFlags>>(
iterator: T,
) -> AskPasswordFlags
fn from_iter<T: IntoIterator<Item = AskPasswordFlags>>( iterator: T, ) -> AskPasswordFlags
Source§impl<'a> FromValue<'a> for AskPasswordFlags
impl<'a> FromValue<'a> for AskPasswordFlags
unsafe fn from_value(value: &Value) -> Self
Source§impl<'a> FromValueOptional<'a> for AskPasswordFlags
impl<'a> FromValueOptional<'a> for AskPasswordFlags
unsafe fn from_value_optional(value: &Value) -> Option<Self>
Source§impl Hash for AskPasswordFlags
impl Hash for AskPasswordFlags
Source§impl LowerHex for AskPasswordFlags
impl LowerHex for AskPasswordFlags
Source§impl Not for AskPasswordFlags
impl Not for AskPasswordFlags
Source§fn not(self) -> AskPasswordFlags
fn not(self) -> AskPasswordFlags
Returns the complement of this set of flags.
Source§type Output = AskPasswordFlags
type Output = AskPasswordFlags
!
operator.Source§impl Octal for AskPasswordFlags
impl Octal for AskPasswordFlags
Source§impl Ord for AskPasswordFlags
impl Ord for AskPasswordFlags
Source§fn cmp(&self, other: &AskPasswordFlags) -> Ordering
fn cmp(&self, other: &AskPasswordFlags) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for AskPasswordFlags
impl PartialEq for AskPasswordFlags
Source§impl PartialOrd for AskPasswordFlags
impl PartialOrd for AskPasswordFlags
Source§impl StaticType for AskPasswordFlags
impl StaticType for AskPasswordFlags
Source§fn static_type() -> Type
fn static_type() -> Type
Self
.Source§impl Sub for AskPasswordFlags
impl Sub for AskPasswordFlags
Source§fn sub(self, other: AskPasswordFlags) -> AskPasswordFlags
fn sub(self, other: AskPasswordFlags) -> AskPasswordFlags
Returns the set difference of the two sets of flags.
Source§type Output = AskPasswordFlags
type Output = AskPasswordFlags
-
operator.Source§impl SubAssign for AskPasswordFlags
impl SubAssign for AskPasswordFlags
Source§fn sub_assign(&mut self, other: AskPasswordFlags)
fn sub_assign(&mut self, other: AskPasswordFlags)
Disables all flags enabled in the set.
Source§impl UpperHex for AskPasswordFlags
impl UpperHex for AskPasswordFlags
impl Copy for AskPasswordFlags
impl Eq for AskPasswordFlags
impl StructuralPartialEq for AskPasswordFlags
Auto Trait Implementations§
impl Freeze for AskPasswordFlags
impl RefUnwindSafe for AskPasswordFlags
impl Send for AskPasswordFlags
impl Sync for AskPasswordFlags
impl Unpin for AskPasswordFlags
impl UnwindSafe for AskPasswordFlags
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> ToSendValue for T
impl<T> ToSendValue for T
Source§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
SendValue
clone of self
.