pub enum ConverterType {
SincBestQuality = 0,
SincMediumQuality = 1,
SincFastest = 2,
ZeroOrderHold = 3,
Linear = 4,
}Expand description
A converter type used to distinguish the interpolation function used by libsamplerate. Has a great impact on quality and performance.
Variants§
Implementations§
Source§impl ConverterType
impl ConverterType
Sourcepub fn from_int(value: isize) -> Result<ConverterType, Error>
pub fn from_int(value: isize) -> Result<ConverterType, Error>
Create a new ConverterType enum from the corresponding integer.
Sourcepub fn description(&self) -> &'static str
pub fn description(&self) -> &'static str
Return the human-readable description for this type of converter.
Trait Implementations§
Source§impl Clone for ConverterType
impl Clone for ConverterType
Source§fn clone(&self) -> ConverterType
fn clone(&self) -> ConverterType
Returns a duplicate 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 ConverterType
impl Debug for ConverterType
Source§impl Hash for ConverterType
impl Hash for ConverterType
Source§impl PartialEq for ConverterType
impl PartialEq for ConverterType
impl Copy for ConverterType
impl Eq for ConverterType
impl StructuralPartialEq for ConverterType
Auto Trait Implementations§
impl Freeze for ConverterType
impl RefUnwindSafe for ConverterType
impl Send for ConverterType
impl Sync for ConverterType
impl Unpin for ConverterType
impl UnwindSafe for ConverterType
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