pub struct Mapping { /* private fields */ }Expand description
An OpusHead channel mapping table (RFC 7845 §5.1.1), present for every family but 0.
Implementations§
Source§impl Mapping
impl Mapping
Sourcepub fn new(config: Config<'_>) -> Result<Self>
pub fn new(config: Config<'_>) -> Result<Self>
Check config into a mapping with one output channel per table entry.
Refuses family 0, a channel count the family does not allow (family 2 allows only the 4, 9, 16, … channels of first order ambisonics and up, without RFC 8486’s non-diegetic stereo pair), and a table that names no streams, more coupled streams than streams, or a channel past the decoded ones.
Trait Implementations§
impl Copy for Mapping
impl Eq for Mapping
impl StructuralPartialEq for Mapping
Auto Trait Implementations§
impl Freeze for Mapping
impl RefUnwindSafe for Mapping
impl Send for Mapping
impl Sync for Mapping
impl Unpin for Mapping
impl UnsafeUnpin for Mapping
impl UnwindSafe for Mapping
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.