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