Struct gstreamer_audio::AudioInfoBuilder
source · pub struct AudioInfoBuilder<'a> { /* private fields */ }
Implementations§
source§impl<'a> AudioInfoBuilder<'a>
impl<'a> AudioInfoBuilder<'a>
pub fn build(self) -> Result<AudioInfo, BoolError>
pub fn positions( self, positions: &'a [AudioChannelPosition], ) -> AudioInfoBuilder<'a>
pub fn positions_if( self, positions: &'a [AudioChannelPosition], predicate: bool, ) -> AudioInfoBuilder<'a>
pub fn positions_if_some( self, positions: Option<&'a [AudioChannelPosition]>, ) -> AudioInfoBuilder<'a>
pub fn flags(self, flags: AudioFlags) -> Self
pub fn flags_if(self, flags: AudioFlags, predicate: bool) -> Self
pub fn flags_if_some(self, flags: Option<AudioFlags>) -> Self
pub fn layout(self, layout: AudioLayout) -> Self
pub fn layout_if(self, layout: AudioLayout, predicate: bool) -> Self
pub fn layout_if_some(self, layout: Option<AudioLayout>) -> Self
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for AudioInfoBuilder<'a>
impl<'a> RefUnwindSafe for AudioInfoBuilder<'a>
impl<'a> Send for AudioInfoBuilder<'a>
impl<'a> Sync for AudioInfoBuilder<'a>
impl<'a> Unpin for AudioInfoBuilder<'a>
impl<'a> UnwindSafe for AudioInfoBuilder<'a>
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> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more