pub enum PhaseResponse {
Linear,
Minimum,
Maximum,
}Expand description
Phase response for the resampling filter.
Variants§
Linear
Linear phase: symmetric impulse, no phase distortion, higher latency.
Minimum
Minimum phase: lowest latency, some phase distortion.
Maximum
Maximum phase: energy concentrated toward the end of the impulse.
Implementations§
Source§impl PhaseResponse
impl PhaseResponse
Sourcepub fn to_soxr_value(&self) -> f64
pub fn to_soxr_value(&self) -> f64
Convert to soxr phase_response value.
Trait Implementations§
Source§impl Clone for PhaseResponse
impl Clone for PhaseResponse
Source§fn clone(&self) -> PhaseResponse
fn clone(&self) -> PhaseResponse
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PhaseResponse
Source§impl Debug for PhaseResponse
impl Debug for PhaseResponse
Source§impl Default for PhaseResponse
impl Default for PhaseResponse
Source§fn default() -> PhaseResponse
fn default() -> PhaseResponse
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PhaseResponse
impl<'de> Deserialize<'de> for PhaseResponse
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PhaseResponse
impl PartialEq for PhaseResponse
Source§fn eq(&self, other: &PhaseResponse) -> bool
fn eq(&self, other: &PhaseResponse) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PhaseResponse
impl Serialize for PhaseResponse
impl StructuralPartialEq for PhaseResponse
Auto Trait Implementations§
impl Freeze for PhaseResponse
impl RefUnwindSafe for PhaseResponse
impl Send for PhaseResponse
impl Sync for PhaseResponse
impl Unpin for PhaseResponse
impl UnsafeUnpin for PhaseResponse
impl UnwindSafe for PhaseResponse
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<S, T> Duplex<S> for Twhere
T: FromSample<S> + ToSample<S>,
Source§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more