pub enum MaxLongTermFrameIdx {
NoLongTermFrameIndices,
Idx(u32),
}
Expand description
Representation of MaxLongTermFrameIdx
.
MaxLongTermFrameIdx
is derived from max_long_term_frame_idx_plus1
, an unsigned integer with
a special value indicating “no long-term frame indices”. This type allows easy conversion
between the actual and “plus1” representation, while ensuring that the special value is always
handled by the code.
Variants§
Implementations§
Source§impl MaxLongTermFrameIdx
impl MaxLongTermFrameIdx
Sourcepub fn from_value_plus1(max_long_term_frame_idx_plus1: u32) -> Self
pub fn from_value_plus1(max_long_term_frame_idx_plus1: u32) -> Self
Create a value from max_long_term_frame_idx_plus1
.
Sourcepub fn to_value_plus1(self) -> u32
pub fn to_value_plus1(self) -> u32
Convert this value to the representation used by max_long_term_frame_idx_plus1
.
Trait Implementations§
Source§impl Clone for MaxLongTermFrameIdx
impl Clone for MaxLongTermFrameIdx
Source§fn clone(&self) -> MaxLongTermFrameIdx
fn clone(&self) -> MaxLongTermFrameIdx
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 MaxLongTermFrameIdx
impl Debug for MaxLongTermFrameIdx
Source§impl Default for MaxLongTermFrameIdx
impl Default for MaxLongTermFrameIdx
Source§fn default() -> MaxLongTermFrameIdx
fn default() -> MaxLongTermFrameIdx
Returns the “default value” for a type. Read more
Source§impl PartialEq<u32> for MaxLongTermFrameIdx
impl PartialEq<u32> for MaxLongTermFrameIdx
Source§impl PartialEq for MaxLongTermFrameIdx
impl PartialEq for MaxLongTermFrameIdx
Source§impl PartialOrd<u32> for MaxLongTermFrameIdx
impl PartialOrd<u32> for MaxLongTermFrameIdx
impl Copy for MaxLongTermFrameIdx
impl Eq for MaxLongTermFrameIdx
impl StructuralPartialEq for MaxLongTermFrameIdx
Auto Trait Implementations§
impl Freeze for MaxLongTermFrameIdx
impl RefUnwindSafe for MaxLongTermFrameIdx
impl Send for MaxLongTermFrameIdx
impl Sync for MaxLongTermFrameIdx
impl Unpin for MaxLongTermFrameIdx
impl UnwindSafe for MaxLongTermFrameIdx
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