pub struct CdefStrength {
pub primary: u8,
pub secondary: u8,
}Expand description
CDEF strength parameters for a single preset.
Fields§
§primary: u8Primary strength (0-15).
secondary: u8Secondary strength index (0-3, maps to 0, 1, 2, 4).
Implementations§
Source§impl CdefStrength
impl CdefStrength
Sourcepub fn secondary_value(&self) -> u8
pub fn secondary_value(&self) -> u8
Get the actual secondary strength value.
Sourcepub fn is_enabled(&self) -> bool
pub fn is_enabled(&self) -> bool
Check if this preset has any filtering.
Sourcepub fn parse(reader: &mut BitReader<'_>) -> CodecResult<Self>
pub fn parse(reader: &mut BitReader<'_>) -> CodecResult<Self>
Parse a CDEF strength from bitstream.
Trait Implementations§
Source§impl Clone for CdefStrength
impl Clone for CdefStrength
Source§fn clone(&self) -> CdefStrength
fn clone(&self) -> CdefStrength
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 CdefStrength
impl Debug for CdefStrength
Source§impl Default for CdefStrength
impl Default for CdefStrength
Source§fn default() -> CdefStrength
fn default() -> CdefStrength
Returns the “default value” for a type. Read more
Source§impl PartialEq for CdefStrength
impl PartialEq for CdefStrength
impl Copy for CdefStrength
impl Eq for CdefStrength
impl StructuralPartialEq for CdefStrength
Auto Trait Implementations§
impl Freeze for CdefStrength
impl RefUnwindSafe for CdefStrength
impl Send for CdefStrength
impl Sync for CdefStrength
impl Unpin for CdefStrength
impl UnsafeUnpin for CdefStrength
impl UnwindSafe for CdefStrength
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more