Struct mpg123_sys::mpg123_enc_enum
[−]
#[repr(C)]pub struct mpg123_enc_enum { /* fields omitted */ }
Methods
impl mpg123_enc_enum
const MPG123_ENC_8: mpg123_enc_enum
MPG123_ENC_8: mpg123_enc_enum = mpg123_enc_enum{bits: 15,}
const MPG123_ENC_16: mpg123_enc_enum
MPG123_ENC_16: mpg123_enc_enum = mpg123_enc_enum{bits: 64,}
const MPG123_ENC_24: mpg123_enc_enum
MPG123_ENC_24: mpg123_enc_enum = mpg123_enc_enum{bits: 16384,}
const MPG123_ENC_32: mpg123_enc_enum
MPG123_ENC_32: mpg123_enc_enum = mpg123_enc_enum{bits: 256,}
const MPG123_ENC_SIGNED: mpg123_enc_enum
MPG123_ENC_SIGNED: mpg123_enc_enum = mpg123_enc_enum{bits: 128,}
const MPG123_ENC_FLOAT: mpg123_enc_enum
MPG123_ENC_FLOAT: mpg123_enc_enum = mpg123_enc_enum{bits: 3584,}
const MPG123_ENC_SIGNED_16: mpg123_enc_enum
MPG123_ENC_SIGNED_16: mpg123_enc_enum = mpg123_enc_enum{bits: <Self>::MPG123_ENC_16.bits | <Self>::MPG123_ENC_SIGNED.bits | 16,}
const MPG123_ENC_UNSIGNED_16: mpg123_enc_enum
MPG123_ENC_UNSIGNED_16: mpg123_enc_enum = mpg123_enc_enum{bits: <Self>::MPG123_ENC_16.bits | 32,}
const MPG123_ENC_UNSIGNED_8: mpg123_enc_enum
MPG123_ENC_UNSIGNED_8: mpg123_enc_enum = mpg123_enc_enum{bits: 1,}
const MPG123_ENC_SIGNED_8: mpg123_enc_enum
MPG123_ENC_SIGNED_8: mpg123_enc_enum = mpg123_enc_enum{bits: <Self>::MPG123_ENC_SIGNED.bits | 2,}
const MPG123_ENC_ULAW_8: mpg123_enc_enum
MPG123_ENC_ULAW_8: mpg123_enc_enum = mpg123_enc_enum{bits: 4,}
const MPG123_ENC_ALAW_8: mpg123_enc_enum
MPG123_ENC_ALAW_8: mpg123_enc_enum = mpg123_enc_enum{bits: 8,}
const MPG123_ENC_SIGNED_32: mpg123_enc_enum
MPG123_ENC_SIGNED_32: mpg123_enc_enum = mpg123_enc_enum{bits: <Self>::MPG123_ENC_32.bits | <Self>::MPG123_ENC_SIGNED.bits | 4096,}
const MPG123_ENC_UNSIGNED_32: mpg123_enc_enum
MPG123_ENC_UNSIGNED_32: mpg123_enc_enum = mpg123_enc_enum{bits: <Self>::MPG123_ENC_32.bits | 8192,}
const MPG123_ENC_SIGNED_24: mpg123_enc_enum
MPG123_ENC_SIGNED_24: mpg123_enc_enum = mpg123_enc_enum{bits: <Self>::MPG123_ENC_24.bits | <Self>::MPG123_ENC_SIGNED.bits | 4096,}
const MPG123_ENC_UNSIGNED_24: mpg123_enc_enum
MPG123_ENC_UNSIGNED_24: mpg123_enc_enum = mpg123_enc_enum{bits: <Self>::MPG123_ENC_24.bits | 8192,}
const MPG123_ENC_FLOAT_32: mpg123_enc_enum
MPG123_ENC_FLOAT_32: mpg123_enc_enum = mpg123_enc_enum{bits: 512,}
const MPG123_ENC_FLOAT_64: mpg123_enc_enum
MPG123_ENC_FLOAT_64: mpg123_enc_enum = mpg123_enc_enum{bits: 1024,}
const MPG123_ENC_ANY: mpg123_enc_enum
MPG123_ENC_ANY: mpg123_enc_enum = mpg123_enc_enum{bits: <Self>::MPG123_ENC_SIGNED_8.bits | <Self>::MPG123_ENC_SIGNED_16.bits | <Self>::MPG123_ENC_SIGNED_24.bits | <Self>::MPG123_ENC_SIGNED_32.bits | <Self>::MPG123_ENC_UNSIGNED_8.bits | <Self>::MPG123_ENC_UNSIGNED_16.bits | <Self>::MPG123_ENC_UNSIGNED_24.bits | <Self>::MPG123_ENC_UNSIGNED_32.bits | <Self>::MPG123_ENC_ALAW_8.bits | <Self>::MPG123_ENC_ULAW_8.bits | <Self>::MPG123_ENC_FLOAT_32.bits | <Self>::MPG123_ENC_FLOAT_64.bits,}
fn empty() -> mpg123_enc_enum
Returns an empty set of flags.
fn all() -> mpg123_enc_enum
Returns the set containing all flags.
fn bits(&self) -> c_int
Returns the raw value of the flags currently stored.
fn from_bits(bits: c_int) -> Option<mpg123_enc_enum>
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
fn from_bits_truncate(bits: c_int) -> mpg123_enc_enum
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
fn is_empty(&self) -> bool
Returns true
if no flags are currently stored.
fn is_all(&self) -> bool
Returns true
if all flags are currently set.
fn intersects(&self, other: mpg123_enc_enum) -> bool
Returns true
if there are flags common to both self
and other
.
fn contains(&self, other: mpg123_enc_enum) -> bool
Returns true
all of the flags in other
are contained within self
.
fn insert(&mut self, other: mpg123_enc_enum)
Inserts the specified flags in-place.
fn remove(&mut self, other: mpg123_enc_enum)
Removes the specified flags in-place.
fn toggle(&mut self, other: mpg123_enc_enum)
Toggles the specified flags in-place.
fn set(&mut self, other: mpg123_enc_enum, value: bool)
Inserts or removes the specified flags depending on the passed value.
Trait Implementations
impl Copy for mpg123_enc_enum
impl PartialEq for mpg123_enc_enum
fn eq(&self, __arg_0: &mpg123_enc_enum) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &mpg123_enc_enum) -> bool
This method tests for !=
.
impl Eq for mpg123_enc_enum
impl Clone for mpg123_enc_enum
fn clone(&self) -> mpg123_enc_enum
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialOrd for mpg123_enc_enum
fn partial_cmp(&self, __arg_0: &mpg123_enc_enum) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, __arg_0: &mpg123_enc_enum) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, __arg_0: &mpg123_enc_enum) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, __arg_0: &mpg123_enc_enum) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, __arg_0: &mpg123_enc_enum) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Ord for mpg123_enc_enum
fn cmp(&self, __arg_0: &mpg123_enc_enum) -> Ordering
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.22.0[src]
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.22.0[src]
Compares and returns the minimum of two values. Read more
impl Hash for mpg123_enc_enum
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Debug for mpg123_enc_enum
impl Binary for mpg123_enc_enum
impl Octal for mpg123_enc_enum
impl LowerHex for mpg123_enc_enum
impl UpperHex for mpg123_enc_enum
impl BitOr for mpg123_enc_enum
type Output = mpg123_enc_enum
The resulting type after applying the |
operator.
fn bitor(self, other: mpg123_enc_enum) -> mpg123_enc_enum
Returns the union of the two sets of flags.
impl BitOrAssign for mpg123_enc_enum
fn bitor_assign(&mut self, other: mpg123_enc_enum)
Adds the set of flags.
impl BitXor for mpg123_enc_enum
type Output = mpg123_enc_enum
The resulting type after applying the ^
operator.
fn bitxor(self, other: mpg123_enc_enum) -> mpg123_enc_enum
Returns the left flags, but with all the right flags toggled.
impl BitXorAssign for mpg123_enc_enum
fn bitxor_assign(&mut self, other: mpg123_enc_enum)
Toggles the set of flags.
impl BitAnd for mpg123_enc_enum
type Output = mpg123_enc_enum
The resulting type after applying the &
operator.
fn bitand(self, other: mpg123_enc_enum) -> mpg123_enc_enum
Returns the intersection between the two sets of flags.
impl BitAndAssign for mpg123_enc_enum
fn bitand_assign(&mut self, other: mpg123_enc_enum)
Disables all flags disabled in the set.
impl Sub for mpg123_enc_enum
type Output = mpg123_enc_enum
The resulting type after applying the -
operator.
fn sub(self, other: mpg123_enc_enum) -> mpg123_enc_enum
Returns the set difference of the two sets of flags.
impl SubAssign for mpg123_enc_enum
fn sub_assign(&mut self, other: mpg123_enc_enum)
Disables all flags enabled in the set.
impl Not for mpg123_enc_enum
type Output = mpg123_enc_enum
The resulting type after applying the !
operator.
fn not(self) -> mpg123_enc_enum
Returns the complement of this set of flags.
impl Extend<mpg123_enc_enum> for mpg123_enc_enum
fn extend<T: IntoIterator<Item = mpg123_enc_enum>>(&mut self, iterator: T)
Extends a collection with the contents of an iterator. Read more
impl FromIterator<mpg123_enc_enum> for mpg123_enc_enum
fn from_iter<T: IntoIterator<Item = mpg123_enc_enum>>(
iterator: T
) -> mpg123_enc_enum
iterator: T
) -> mpg123_enc_enum
Creates a value from an iterator. Read more