pub enum Datatype {
Float32I,
Float64I,
Int32I,
Int16I,
Float32S,
Float64S,
Int32S,
Int16S,
}
Expand description
Datatypes supported for I/O to/from the resampler.
Use the I data types for Interleaved channels and use the S data types for split channels. Wrapper for soxr_datatype_t
.
Variants§
Implementations§
source§impl Datatype
impl Datatype
sourcepub fn to_soxr_datatype(self) -> soxr_datatype_t
pub fn to_soxr_datatype(self) -> soxr_datatype_t
helper function to convert from Datatype
to soxr_datatype_t
pub fn is_interleaved(&self) -> bool
Trait Implementations§
source§impl Ord for Datatype
impl Ord for Datatype
source§impl PartialEq<Datatype> for Datatype
impl PartialEq<Datatype> for Datatype
source§impl PartialOrd<Datatype> for Datatype
impl PartialOrd<Datatype> for Datatype
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more