[][src]Struct x3::x3::Parameters

pub struct Parameters {
    pub block_len: usize,
    pub blocks_per_frame: usize,
    pub codes: [usize; 3],
    pub thresholds: [usize; 3],
    pub rice_codes: [&'static RiceCode; 3],
}

Fields

block_len: usizeblocks_per_frame: usizecodes: [usize; 3]thresholds: [usize; 3]rice_codes: [&'static RiceCode; 3]

Implementations

impl Parameters[src]

pub const MAX_BLOCK_LENGTH: usize[src]

pub const WAV_BIT_SIZE: usize[src]

pub const DEFAULT_BLOCK_LENGTH: usize[src]

pub const DEFAULT_RICE_CODES: [usize; 3][src]

pub const DEFAULT_THRESHOLDS: [usize; 3][src]

pub const DEFAULT_BLOCKS_PER_FRAME: usize[src]

pub fn new(
    block_len: usize,
    blocks_per_frame: usize,
    codes: [usize; 3],
    thresholds: [usize; 3]
) -> Result<Self, X3Error>
[src]

pub fn default() -> Self[src]

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, 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.