pub struct LoudnessLayout { /* private fields */ }Expand description
Ordered interleaved channel layout for loudness measurement.
Implementations§
Source§impl LoudnessLayout
impl LoudnessLayout
Sourcepub fn new(channels: Vec<LoudnessChannel>) -> Result<Self, LoudnessError>
pub fn new(channels: Vec<LoudnessChannel>) -> Result<Self, LoudnessError>
Builds a bounded nonempty layout.
Sourcepub fn five_point_one() -> Self
pub fn five_point_one() -> Self
Standard 5.1 order: left, right, center, LFE, left surround, right surround.
Sourcepub fn channels(&self) -> &[LoudnessChannel]
pub fn channels(&self) -> &[LoudnessChannel]
Returns the ordered interleaved channels.
Trait Implementations§
Source§impl Clone for LoudnessLayout
impl Clone for LoudnessLayout
Source§fn clone(&self) -> LoudnessLayout
fn clone(&self) -> LoudnessLayout
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 LoudnessLayout
impl Debug for LoudnessLayout
impl Eq for LoudnessLayout
Source§impl PartialEq for LoudnessLayout
impl PartialEq for LoudnessLayout
impl StructuralPartialEq for LoudnessLayout
Auto Trait Implementations§
impl Freeze for LoudnessLayout
impl RefUnwindSafe for LoudnessLayout
impl Send for LoudnessLayout
impl Sync for LoudnessLayout
impl Unpin for LoudnessLayout
impl UnsafeUnpin for LoudnessLayout
impl UnwindSafe for LoudnessLayout
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