[][src]Enum dxx::DType

pub enum DType {
    DSA,
    DFA,
    DDA,
    DSB,
    DFB,
    DDB,
}

DType is an enum for describing data type of file.

Variants

DSA
DFA
DDA
DSB
DFB
DDB

Implementations

impl DType[src]

pub fn from_filename(filename: &str) -> Result<DType, &'static str>[src]

from_filename determines the data type from the specified file name.

pub fn byte_width(&self) -> u32[src]

byte_width returns the byte width of a sample.

pub fn bits_width(&self) -> u32[src]

byte_width returns the bits width of a sample.

Trait Implementations

impl Display for DType[src]

impl FromStr for DType[src]

type Err = &'static str

The associated error which can be returned from parsing.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.