Trait symphonia_core::io::vlc::CodebookEntry
source · pub trait CodebookEntry: Copy + Clone + Default {
type ValueType: Copy + From<u8>;
type OffsetType: Copy;
const JUMP_OFFSET_MAX: u32;
// Required methods
fn new_value(value: Self::ValueType, len: u8) -> Self;
fn new_jump(offset: u32, len: u8) -> Self;
fn is_value(&self) -> bool;
fn is_jump(&self) -> bool;
fn value(&self) -> Self::ValueType;
fn value_len(&self) -> u32;
fn jump_offset(&self) -> usize;
fn jump_len(&self) -> u32;
}
Expand description
CodebookEntry
provides the functions required for an entry in the Codebook
.
Required Associated Types§
sourcetype OffsetType: Copy
type OffsetType: Copy
The type of a jump offset in this entry.
Required Associated Constants§
sourceconst JUMP_OFFSET_MAX: u32
const JUMP_OFFSET_MAX: u32
The maximum jump offset.
Required Methods§
sourcefn jump_offset(&self) -> usize
fn jump_offset(&self) -> usize
Get the position in the table to jump to.
Object Safety§
This trait is not object safe.