#[repr(C)]pub struct mx_signals_t { /* private fields */ }
Implementations§
Source§impl mx_signals_t
impl mx_signals_t
Sourcepub fn empty() -> mx_signals_t
pub fn empty() -> mx_signals_t
Returns an empty set of flags.
Sourcepub fn all() -> mx_signals_t
pub fn all() -> mx_signals_t
Returns the set containing all flags.
Sourcepub fn from_bits(bits: u32) -> Option<mx_signals_t>
pub fn from_bits(bits: u32) -> Option<mx_signals_t>
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
Sourcepub fn from_bits_truncate(bits: u32) -> mx_signals_t
pub fn from_bits_truncate(bits: u32) -> mx_signals_t
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
Sourcepub fn intersects(&self, other: mx_signals_t) -> bool
pub fn intersects(&self, other: mx_signals_t) -> bool
Returns true
if there are flags common to both self
and other
.
Sourcepub fn contains(&self, other: mx_signals_t) -> bool
pub fn contains(&self, other: mx_signals_t) -> bool
Returns true
all of the flags in other
are contained within self
.
Sourcepub fn insert(&mut self, other: mx_signals_t)
pub fn insert(&mut self, other: mx_signals_t)
Inserts the specified flags in-place.
Sourcepub fn remove(&mut self, other: mx_signals_t)
pub fn remove(&mut self, other: mx_signals_t)
Removes the specified flags in-place.
Sourcepub fn toggle(&mut self, other: mx_signals_t)
pub fn toggle(&mut self, other: mx_signals_t)
Toggles the specified flags in-place.
Trait Implementations§
Source§impl BitAnd for mx_signals_t
impl BitAnd for mx_signals_t
Source§fn bitand(self, other: mx_signals_t) -> mx_signals_t
fn bitand(self, other: mx_signals_t) -> mx_signals_t
Returns the intersection between the two sets of flags.
Source§type Output = mx_signals_t
type Output = mx_signals_t
&
operator.Source§impl BitAndAssign for mx_signals_t
impl BitAndAssign for mx_signals_t
Source§fn bitand_assign(&mut self, other: mx_signals_t)
fn bitand_assign(&mut self, other: mx_signals_t)
Disables all flags disabled in the set.
Source§impl BitOr for mx_signals_t
impl BitOr for mx_signals_t
Source§fn bitor(self, other: mx_signals_t) -> mx_signals_t
fn bitor(self, other: mx_signals_t) -> mx_signals_t
Returns the union of the two sets of flags.
Source§type Output = mx_signals_t
type Output = mx_signals_t
|
operator.Source§impl BitOrAssign for mx_signals_t
impl BitOrAssign for mx_signals_t
Source§fn bitor_assign(&mut self, other: mx_signals_t)
fn bitor_assign(&mut self, other: mx_signals_t)
Adds the set of flags.
Source§impl BitXor for mx_signals_t
impl BitXor for mx_signals_t
Source§fn bitxor(self, other: mx_signals_t) -> mx_signals_t
fn bitxor(self, other: mx_signals_t) -> mx_signals_t
Returns the left flags, but with all the right flags toggled.
Source§type Output = mx_signals_t
type Output = mx_signals_t
^
operator.Source§impl BitXorAssign for mx_signals_t
impl BitXorAssign for mx_signals_t
Source§fn bitxor_assign(&mut self, other: mx_signals_t)
fn bitxor_assign(&mut self, other: mx_signals_t)
Toggles the set of flags.
Source§impl Clone for mx_signals_t
impl Clone for mx_signals_t
Source§fn clone(&self) -> mx_signals_t
fn clone(&self) -> mx_signals_t
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for mx_signals_t
impl Debug for mx_signals_t
Source§impl Extend<mx_signals_t> for mx_signals_t
impl Extend<mx_signals_t> for mx_signals_t
Source§fn extend<T: IntoIterator<Item = mx_signals_t>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = mx_signals_t>>(&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<mx_signals_t> for mx_signals_t
impl FromIterator<mx_signals_t> for mx_signals_t
Source§fn from_iter<T: IntoIterator<Item = mx_signals_t>>(iterator: T) -> mx_signals_t
fn from_iter<T: IntoIterator<Item = mx_signals_t>>(iterator: T) -> mx_signals_t
Source§impl Hash for mx_signals_t
impl Hash for mx_signals_t
Source§impl Not for mx_signals_t
impl Not for mx_signals_t
Source§fn not(self) -> mx_signals_t
fn not(self) -> mx_signals_t
Returns the complement of this set of flags.
Source§type Output = mx_signals_t
type Output = mx_signals_t
!
operator.Source§impl Ord for mx_signals_t
impl Ord for mx_signals_t
Source§fn cmp(&self, other: &mx_signals_t) -> Ordering
fn cmp(&self, other: &mx_signals_t) -> 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 mx_signals_t
impl PartialEq for mx_signals_t
Source§impl PartialOrd for mx_signals_t
impl PartialOrd for mx_signals_t
Source§impl Sub for mx_signals_t
impl Sub for mx_signals_t
Source§fn sub(self, other: mx_signals_t) -> mx_signals_t
fn sub(self, other: mx_signals_t) -> mx_signals_t
Returns the set difference of the two sets of flags.
Source§type Output = mx_signals_t
type Output = mx_signals_t
-
operator.Source§impl SubAssign for mx_signals_t
impl SubAssign for mx_signals_t
Source§fn sub_assign(&mut self, other: mx_signals_t)
fn sub_assign(&mut self, other: mx_signals_t)
Disables all flags enabled in the set.
impl Copy for mx_signals_t
impl Eq for mx_signals_t
impl StructuralPartialEq for mx_signals_t
Auto Trait Implementations§
impl Freeze for mx_signals_t
impl RefUnwindSafe for mx_signals_t
impl Send for mx_signals_t
impl Sync for mx_signals_t
impl Unpin for mx_signals_t
impl UnwindSafe for mx_signals_t
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)