pub struct DbRange {
pub entries: Vec<DbRangeEntry>,
}Expand description
The data to express multiple ranges in the state of control element for dB expression.
It has SNDRV_CTL_TLVT_DB_RANGE (=3) in its type field and has variable number of elements in
value field.
Fields§
§entries: Vec<DbRangeEntry>The entries of ranges for dB expression.
Trait Implementations§
Source§impl<'a> TlvData<'a> for DbRange
impl<'a> TlvData<'a> for DbRange
Source§fn value_type(&self) -> u32
fn value_type(&self) -> u32
Return the value of type field. It should come from UAPI of Linux kernel.
Source§fn value_length(&self) -> usize
fn value_length(&self) -> usize
Return the length of value field. It should be in byte unit and multiples of 4 as result.
Source§impl ToDbInterval for DbRange
impl ToDbInterval for DbRange
fn to_dbinterval( &self, range: &ValueRange, ) -> Result<DbInterval, ToDbIntervalError>
Source§impl ToValueRange for DbRange
impl ToValueRange for DbRange
fn to_valuerange(&self, range: &ValueRange) -> Option<ValueRange>
impl Eq for DbRange
impl StructuralPartialEq for DbRange
Auto Trait Implementations§
impl Freeze for DbRange
impl RefUnwindSafe for DbRange
impl Send for DbRange
impl Sync for DbRange
impl Unpin for DbRange
impl UnwindSafe for DbRange
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