Struct sqa_jack::JackStatus
source · pub struct JackStatus { /* private fields */ }
Expand description
Status of an operation.
See STATUS_*
constants for possible values.
Implementations
sourceimpl JackStatus
impl JackStatus
sourcepub fn empty() -> JackStatus
pub fn empty() -> JackStatus
Returns an empty set of flags.
sourcepub fn all() -> JackStatus
pub fn all() -> JackStatus
Returns the set containing all flags.
sourcepub fn bits(&self) -> jack_status_t
pub fn bits(&self) -> jack_status_t
Returns the raw value of the flags currently stored.
sourcepub fn from_bits(bits: jack_status_t) -> Option<JackStatus>
pub fn from_bits(bits: jack_status_t) -> Option<JackStatus>
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
sourcepub fn from_bits_truncate(bits: jack_status_t) -> JackStatus
pub fn from_bits_truncate(bits: jack_status_t) -> JackStatus
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
sourcepub fn intersects(&self, other: JackStatus) -> bool
pub fn intersects(&self, other: JackStatus) -> bool
Returns true
if there are flags common to both self
and other
.
sourcepub fn contains(&self, other: JackStatus) -> bool
pub fn contains(&self, other: JackStatus) -> bool
Returns true
all of the flags in other
are contained within self
.
sourcepub fn insert(&mut self, other: JackStatus)
pub fn insert(&mut self, other: JackStatus)
Inserts the specified flags in-place.
sourcepub fn remove(&mut self, other: JackStatus)
pub fn remove(&mut self, other: JackStatus)
Removes the specified flags in-place.
sourcepub fn toggle(&mut self, other: JackStatus)
pub fn toggle(&mut self, other: JackStatus)
Toggles the specified flags in-place.
Trait Implementations
sourceimpl BitAnd<JackStatus> for JackStatus
impl BitAnd<JackStatus> for JackStatus
sourcefn bitand(self, other: JackStatus) -> JackStatus
fn bitand(self, other: JackStatus) -> JackStatus
Returns the intersection between the two sets of flags.
type Output = JackStatus
type Output = JackStatus
&
operator.sourceimpl BitAndAssign<JackStatus> for JackStatus
impl BitAndAssign<JackStatus> for JackStatus
sourcefn bitand_assign(&mut self, other: JackStatus)
fn bitand_assign(&mut self, other: JackStatus)
Disables all flags disabled in the set.
sourceimpl BitOr<JackStatus> for JackStatus
impl BitOr<JackStatus> for JackStatus
sourcefn bitor(self, other: JackStatus) -> JackStatus
fn bitor(self, other: JackStatus) -> JackStatus
Returns the union of the two sets of flags.
type Output = JackStatus
type Output = JackStatus
|
operator.sourceimpl BitOrAssign<JackStatus> for JackStatus
impl BitOrAssign<JackStatus> for JackStatus
sourcefn bitor_assign(&mut self, other: JackStatus)
fn bitor_assign(&mut self, other: JackStatus)
Adds the set of flags.
sourceimpl BitXor<JackStatus> for JackStatus
impl BitXor<JackStatus> for JackStatus
sourcefn bitxor(self, other: JackStatus) -> JackStatus
fn bitxor(self, other: JackStatus) -> JackStatus
Returns the left flags, but with all the right flags toggled.
type Output = JackStatus
type Output = JackStatus
^
operator.sourceimpl BitXorAssign<JackStatus> for JackStatus
impl BitXorAssign<JackStatus> for JackStatus
sourcefn bitxor_assign(&mut self, other: JackStatus)
fn bitxor_assign(&mut self, other: JackStatus)
Toggles the set of flags.
sourceimpl Clone for JackStatus
impl Clone for JackStatus
sourcefn clone(&self) -> JackStatus
fn clone(&self) -> JackStatus
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresourceimpl Debug for JackStatus
impl Debug for JackStatus
sourceimpl Extend<JackStatus> for JackStatus
impl Extend<JackStatus> for JackStatus
sourcefn extend<T: IntoIterator<Item = JackStatus>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = JackStatus>>(&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<JackStatus> for JackStatus
impl FromIterator<JackStatus> for JackStatus
sourcefn from_iter<T: IntoIterator<Item = JackStatus>>(iterator: T) -> JackStatus
fn from_iter<T: IntoIterator<Item = JackStatus>>(iterator: T) -> JackStatus
sourceimpl Hash for JackStatus
impl Hash for JackStatus
sourceimpl Not for JackStatus
impl Not for JackStatus
sourcefn not(self) -> JackStatus
fn not(self) -> JackStatus
Returns the complement of this set of flags.
type Output = JackStatus
type Output = JackStatus
!
operator.sourceimpl Ord for JackStatus
impl Ord for JackStatus
sourcefn cmp(&self, other: &JackStatus) -> Ordering
fn cmp(&self, other: &JackStatus) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
1.21.0 · sourcefn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
sourceimpl PartialEq<JackStatus> for JackStatus
impl PartialEq<JackStatus> for JackStatus
sourcefn eq(&self, other: &JackStatus) -> bool
fn eq(&self, other: &JackStatus) -> bool
sourceimpl PartialOrd<JackStatus> for JackStatus
impl PartialOrd<JackStatus> for JackStatus
sourcefn partial_cmp(&self, other: &JackStatus) -> Option<Ordering>
fn partial_cmp(&self, other: &JackStatus) -> 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 Sub<JackStatus> for JackStatus
impl Sub<JackStatus> for JackStatus
sourcefn sub(self, other: JackStatus) -> JackStatus
fn sub(self, other: JackStatus) -> JackStatus
Returns the set difference of the two sets of flags.
type Output = JackStatus
type Output = JackStatus
-
operator.sourceimpl SubAssign<JackStatus> for JackStatus
impl SubAssign<JackStatus> for JackStatus
sourcefn sub_assign(&mut self, other: JackStatus)
fn sub_assign(&mut self, other: JackStatus)
Disables all flags enabled in the set.