[][src]Struct ffav::util::channel_layout::ChannelLayout

pub struct ChannelLayout { /* fields omitted */ }

Implementations

impl ChannelLayout[src]

pub const FRONT_LEFT: ChannelLayout[src]

pub const FRONT_RIGHT: ChannelLayout[src]

pub const FRONT_CENTER: ChannelLayout[src]

pub const LOW_FREQUENCY: ChannelLayout[src]

pub const BACK_LEFT: ChannelLayout[src]

pub const BACK_RIGHT: ChannelLayout[src]

pub const FRONT_LEFT_OF_CENTER: ChannelLayout[src]

pub const FRONT_RIGHT_OF_CENTER: ChannelLayout[src]

pub const BACK_CENTER: ChannelLayout[src]

pub const SIDE_LEFT: ChannelLayout[src]

pub const SIDE_RIGHT: ChannelLayout[src]

pub const TOP_CENTER: ChannelLayout[src]

pub const TOP_FRONT_LEFT: ChannelLayout[src]

pub const TOP_FRONT_CENTER: ChannelLayout[src]

pub const TOP_FRONT_RIGHT: ChannelLayout[src]

pub const TOP_BACK_LEFT: ChannelLayout[src]

pub const TOP_BACK_CENTER: ChannelLayout[src]

pub const TOP_BACK_RIGHT: ChannelLayout[src]

pub const STEREO_LEFT: ChannelLayout[src]

pub const STEREO_RIGHT: ChannelLayout[src]

pub const WIDE_LEFT: ChannelLayout[src]

pub const WIDE_RIGHT: ChannelLayout[src]

pub const SURROUND_DIRECT_LEFT: ChannelLayout[src]

pub const SURROUND_DIRECT_RIGHT: ChannelLayout[src]

pub const LOW_FREQUENCY_2: ChannelLayout[src]

pub const NATIVE: ChannelLayout[src]

pub const MONO: ChannelLayout[src]

pub const STEREO: ChannelLayout[src]

pub const _2POINT1: ChannelLayout[src]

pub const _2_1: ChannelLayout[src]

pub const SURROUND: ChannelLayout[src]

pub const _3POINT1: ChannelLayout[src]

pub const _4POINT0: ChannelLayout[src]

pub const _4POINT1: ChannelLayout[src]

pub const _2_2: ChannelLayout[src]

pub const QUAD: ChannelLayout[src]

pub const _5POINT0: ChannelLayout[src]

pub const _5POINT1: ChannelLayout[src]

pub const _5POINT0_BACK: ChannelLayout[src]

pub const _5POINT1_BACK: ChannelLayout[src]

pub const _6POINT0: ChannelLayout[src]

pub const _6POINT0_FRONT: ChannelLayout[src]

pub const HEXAGONAL: ChannelLayout[src]

pub const _6POINT1: ChannelLayout[src]

pub const _6POINT1_BACK: ChannelLayout[src]

pub const _6POINT1_FRONT: ChannelLayout[src]

pub const _7POINT0: ChannelLayout[src]

pub const _7POINT0_FRONT: ChannelLayout[src]

pub const _7POINT1: ChannelLayout[src]

pub const _7POINT1_WIDE: ChannelLayout[src]

pub const _7POINT1_WIDE_BACK: ChannelLayout[src]

pub const OCTAGONAL: ChannelLayout[src]

pub const HEXADECAGONAL: ChannelLayout[src]

pub const STEREO_DOWNMIX: ChannelLayout[src]

pub const fn empty() -> ChannelLayout[src]

Returns an empty set of flags

pub const fn all() -> ChannelLayout[src]

Returns the set containing all flags.

pub const fn bits(&self) -> c_ulonglong[src]

Returns the raw value of the flags currently stored.

pub fn from_bits(bits: c_ulonglong) -> Option<ChannelLayout>[src]

Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.

pub const fn from_bits_truncate(bits: c_ulonglong) -> ChannelLayout[src]

Convert from underlying bit representation, dropping any bits that do not correspond to flags.

pub const unsafe fn from_bits_unchecked(bits: c_ulonglong) -> ChannelLayout[src]

Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).

pub const fn is_empty(&self) -> bool[src]

Returns true if no flags are currently stored.

pub const fn is_all(&self) -> bool[src]

Returns true if all flags are currently set.

pub const fn intersects(&self, other: ChannelLayout) -> bool[src]

Returns true if there are flags common to both self and other.

pub const fn contains(&self, other: ChannelLayout) -> bool[src]

Returns true all of the flags in other are contained within self.

pub fn insert(&mut self, other: ChannelLayout)[src]

Inserts the specified flags in-place.

pub fn remove(&mut self, other: ChannelLayout)[src]

Removes the specified flags in-place.

pub fn toggle(&mut self, other: ChannelLayout)[src]

Toggles the specified flags in-place.

pub fn set(&mut self, other: ChannelLayout, value: bool)[src]

Inserts or removes the specified flags depending on the passed value.

impl ChannelLayout[src]

pub fn channels(&self) -> i32[src]

pub fn default(number: i32) -> ChannelLayout[src]

Trait Implementations

impl Binary for ChannelLayout[src]

impl BitAnd<ChannelLayout> for ChannelLayout[src]

type Output = ChannelLayout

The resulting type after applying the & operator.

pub fn bitand(self, other: ChannelLayout) -> ChannelLayout[src]

Returns the intersection between the two sets of flags.

impl BitAndAssign<ChannelLayout> for ChannelLayout[src]

pub fn bitand_assign(&mut self, other: ChannelLayout)[src]

Disables all flags disabled in the set.

impl BitOr<ChannelLayout> for ChannelLayout[src]

type Output = ChannelLayout

The resulting type after applying the | operator.

pub fn bitor(self, other: ChannelLayout) -> ChannelLayout[src]

Returns the union of the two sets of flags.

impl BitOrAssign<ChannelLayout> for ChannelLayout[src]

pub fn bitor_assign(&mut self, other: ChannelLayout)[src]

Adds the set of flags.

impl BitXor<ChannelLayout> for ChannelLayout[src]

type Output = ChannelLayout

The resulting type after applying the ^ operator.

pub fn bitxor(self, other: ChannelLayout) -> ChannelLayout[src]

Returns the left flags, but with all the right flags toggled.

impl BitXorAssign<ChannelLayout> for ChannelLayout[src]

pub fn bitxor_assign(&mut self, other: ChannelLayout)[src]

Toggles the set of flags.

impl Clone for ChannelLayout[src]

impl Copy for ChannelLayout[src]

impl Debug for ChannelLayout[src]

impl Eq for ChannelLayout[src]

impl Extend<ChannelLayout> for ChannelLayout[src]

impl FromIterator<ChannelLayout> for ChannelLayout[src]

impl Hash for ChannelLayout[src]

impl LowerHex for ChannelLayout[src]

impl Not for ChannelLayout[src]

type Output = ChannelLayout

The resulting type after applying the ! operator.

pub fn not(self) -> ChannelLayout[src]

Returns the complement of this set of flags.

impl Octal for ChannelLayout[src]

impl Ord for ChannelLayout[src]

impl PartialEq<ChannelLayout> for ChannelLayout[src]

impl PartialOrd<ChannelLayout> for ChannelLayout[src]

impl StructuralEq for ChannelLayout[src]

impl StructuralPartialEq for ChannelLayout[src]

impl Sub<ChannelLayout> for ChannelLayout[src]

type Output = ChannelLayout

The resulting type after applying the - operator.

pub fn sub(self, other: ChannelLayout) -> ChannelLayout[src]

Returns the set difference of the two sets of flags.

impl SubAssign<ChannelLayout> for ChannelLayout[src]

pub fn sub_assign(&mut self, other: ChannelLayout)[src]

Disables all flags enabled in the set.

impl UpperHex for ChannelLayout[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.