pub struct SampleFormat(/* private fields */);
Expand description
Audio sample format
Implementations§
Source§impl SampleFormat
impl SampleFormat
pub fn new(format: impl Into<String>) -> Self
pub fn as_str(&self) -> &str
pub fn u8() -> Self
pub fn s16() -> Self
pub fn s32() -> Self
pub fn flt() -> Self
pub fn dbl() -> Self
pub fn u8p() -> Self
pub fn s16p() -> Self
pub fn s32p() -> Self
pub fn fltp() -> Self
pub fn dblp() -> Self
Trait Implementations§
Source§impl Clone for SampleFormat
impl Clone for SampleFormat
Source§fn clone(&self) -> SampleFormat
fn clone(&self) -> SampleFormat
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 SampleFormat
impl Debug for SampleFormat
Source§impl<'de> Deserialize<'de> for SampleFormat
impl<'de> Deserialize<'de> for SampleFormat
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 Display for SampleFormat
impl Display for SampleFormat
Source§impl PartialEq for SampleFormat
impl PartialEq for SampleFormat
Source§impl Serialize for SampleFormat
impl Serialize for SampleFormat
impl Eq for SampleFormat
impl StructuralPartialEq for SampleFormat
Auto Trait Implementations§
impl Freeze for SampleFormat
impl RefUnwindSafe for SampleFormat
impl Send for SampleFormat
impl Sync for SampleFormat
impl Unpin for SampleFormat
impl UnwindSafe for SampleFormat
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