pub enum EqualizerBandType {
Peak,
Notch,
LowCut,
HighCut,
LowShelf,
HighShelf,
// some variants omitted
}
Expand description
Type of the equalizer band.
Variants§
Peak
Increase/decrease in gain_db
in the vicinity of a frequency
with an optional q
.
Notch
Narrow band rejection significantly attenuating a frequency
with an optional q
.
LowCut
Decrease gain below a frequency
with an optional q
, a.k.a high pass.
HighCut
Decrease gain above a frequency
with an optional q
, a.k.a low pass.
LowShelf
Decrease gain below a frequency
for a gain_db
amount with a plateau effect.
HighShelf
Decrease gain above a frequency
for a gain_db
amount with a plateau effect.
Implementations§
Source§impl EqualizerBandType
impl EqualizerBandType
pub fn from_primitive(prim: u64) -> Option<Self>
pub fn from_primitive_allow_unknown(prim: u64) -> Self
pub fn unknown() -> Self
pub const fn into_primitive(self) -> u64
pub fn is_unknown(&self) -> bool
Trait Implementations§
Source§impl Clone for EqualizerBandType
impl Clone for EqualizerBandType
Source§fn clone(&self) -> EqualizerBandType
fn clone(&self) -> EqualizerBandType
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for EqualizerBandType
impl Debug for EqualizerBandType
Source§impl<D: ResourceDialect> Decode<EqualizerBandType, D> for EqualizerBandType
impl<D: ResourceDialect> Decode<EqualizerBandType, D> for EqualizerBandType
Source§impl<D: ResourceDialect> Encode<EqualizerBandType, D> for EqualizerBandType
impl<D: ResourceDialect> Encode<EqualizerBandType, D> for EqualizerBandType
Source§impl Hash for EqualizerBandType
impl Hash for EqualizerBandType
Source§impl Ord for EqualizerBandType
impl Ord for EqualizerBandType
Source§fn cmp(&self, other: &EqualizerBandType) -> Ordering
fn cmp(&self, other: &EqualizerBandType) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for EqualizerBandType
impl PartialEq for EqualizerBandType
Source§impl PartialOrd for EqualizerBandType
impl PartialOrd for EqualizerBandType
Source§impl TypeMarker for EqualizerBandType
impl TypeMarker for EqualizerBandType
Source§type Owned = EqualizerBandType
type Owned = EqualizerBandType
The owned Rust type which this FIDL type decodes into.
Source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Returns the minimum required alignment of the inline portion of the
encoded object. It must be a (nonzero) power of two.
Source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
Returns the size of the inline portion of the encoded object, including
padding for alignment. Must be a multiple of
inline_align
.Source§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned
matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned
to a single memcpy. Read moreSource§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned
matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned
to a single memcpy.Source§impl ValueTypeMarker for EqualizerBandType
impl ValueTypeMarker for EqualizerBandType
Source§type Borrowed<'a> = EqualizerBandType
type Borrowed<'a> = EqualizerBandType
The Rust type to use for encoding. This is a particular
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read moreimpl Copy for EqualizerBandType
impl Eq for EqualizerBandType
impl StructuralPartialEq for EqualizerBandType
Auto Trait Implementations§
impl Freeze for EqualizerBandType
impl RefUnwindSafe for EqualizerBandType
impl Send for EqualizerBandType
impl Sync for EqualizerBandType
impl Unpin for EqualizerBandType
impl UnwindSafe for EqualizerBandType
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
Mutably borrows from an owned value. Read more
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)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)