pub enum DType {
DSA,
DFA,
DDA,
DSB,
DFB,
DDB,
}
Expand description
DType is an enum for describing data type of file.
Variants§
Implementations§
Source§impl DType
impl DType
Sourcepub fn from_filename(filename: &str) -> Result<DType, &'static str>
pub fn from_filename(filename: &str) -> Result<DType, &'static str>
from_filename determines the data type from the specified file name.
Sourcepub fn byte_width(&self) -> u32
pub fn byte_width(&self) -> u32
byte_width returns the byte width of a sample.
Sourcepub fn bits_width(&self) -> u32
pub fn bits_width(&self) -> u32
byte_width returns the bits width of a sample.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DType
impl RefUnwindSafe for DType
impl Send for DType
impl Sync for DType
impl Unpin for DType
impl UnwindSafe for DType
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