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