Enum rustiff::BitsPerSample [−][src]
pub enum BitsPerSample { U8_1, U8_3, U8_4, U16_1, U16_3, U16_4, }
Variants
U8_1
U8_3
U8_4
U16_1
U16_3
U16_4
Methods
impl BitsPerSample
[src]
impl BitsPerSample
pub fn new<T: AsRef<[u16]>>(
values: T
) -> Result<BitsPerSample, BitsPerSampleError>
[src]
pub fn new<T: AsRef<[u16]>>(
values: T
) -> Result<BitsPerSample, BitsPerSampleError>
pub fn len(&self) -> usize
[src]
pub fn len(&self) -> usize
pub fn max_value(&self) -> u16
[src]
pub fn max_value(&self) -> u16
pub fn bits(&self) -> usize
[src]
pub fn bits(&self) -> usize
Trait Implementations
impl Debug for BitsPerSample
[src]
impl Debug for BitsPerSample
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for BitsPerSample
[src]
impl Clone for BitsPerSample
fn clone(&self) -> BitsPerSample
[src]
fn clone(&self) -> BitsPerSample
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Copy for BitsPerSample
[src]
impl Copy for BitsPerSample
impl PartialEq for BitsPerSample
[src]
impl PartialEq for BitsPerSample
fn eq(&self, other: &BitsPerSample) -> bool
[src]
fn eq(&self, other: &BitsPerSample) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]This method tests for !=
.
impl Eq for BitsPerSample
[src]
impl Eq for BitsPerSample
Auto Trait Implementations
impl Send for BitsPerSample
impl Send for BitsPerSample
impl Sync for BitsPerSample
impl Sync for BitsPerSample