pub struct DataFormat { /* private fields */ }Expand description
The format of a data sample.
Implementations§
Source§impl DataFormat
impl DataFormat
Sourcepub fn is_fully_defined(&self) -> bool
pub fn is_fully_defined(&self) -> bool
Determines if the sample is fully defined, sign extended, etc.
Sourcepub fn is_big_endian(&self) -> bool
pub fn is_big_endian(&self) -> bool
Determines if the sample is in big-endian format
Sourcepub fn with_scale(&self) -> bool
pub fn with_scale(&self) -> bool
Determinesif the sample should be scaled when converted
Sourcepub fn byte_length(&self) -> usize
pub fn byte_length(&self) -> usize
The number of bytes required to hold a single sample from the channel.
Trait Implementations§
Source§impl Clone for DataFormat
impl Clone for DataFormat
Source§fn clone(&self) -> DataFormat
fn clone(&self) -> DataFormat
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 DataFormat
impl Debug for DataFormat
impl Copy for DataFormat
Auto Trait Implementations§
impl Freeze for DataFormat
impl RefUnwindSafe for DataFormat
impl Send for DataFormat
impl Sync for DataFormat
impl Unpin for DataFormat
impl UnwindSafe for DataFormat
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