Struct SdrFileReaderBuilder

Source
pub struct SdrFileReaderBuilder<__0, ___State = __SdrFileReaderBuilderInitialState>
where __0: AsRef<Path>,
{ /* private fields */ }
Expand description

Use builder syntax to set the required parameters and finish by calling the method Self::build().

Implementations§

Source§

impl<__0, __FilePath, __SamplesPerChunk, __SampleType> SdrFileReaderBuilder<__0, (__FilePath, __SamplesPerChunk, __SampleType)>
where __0: AsRef<Path>,

Source

pub fn build(self) -> Result<SdrFileReader, Error>
where __FilePath: IntoSet<__0, SdrFileReaderBuilder__file_path>, __SamplesPerChunk: IntoSet<usize, SdrFileReaderBuilder__samples_per_chunk>, __SampleType: IntoSet<SampleType, SdrFileReaderBuilder__sample_type>,

Finishes building and performs the requested action.

Source

pub fn file_path( self, value: __0, ) -> <Self as __SdrFileReaderBuilderSetMember>::FilePath
where __FilePath: IsUnset,

Sets the value of file_path. See SdrFileReader::builder() for more info.

Source

pub fn samples_per_chunk( self, value: usize, ) -> <Self as __SdrFileReaderBuilderSetMember>::SamplesPerChunk
where __SamplesPerChunk: IsUnset,

Sets the value of samples_per_chunk. See SdrFileReader::builder() for more info.

Source

pub fn sample_type( self, value: SampleType, ) -> <Self as __SdrFileReaderBuilderSetMember>::SampleType
where __SampleType: IsUnset,

Sets the value of sample_type. See SdrFileReader::builder() for more info.

Auto Trait Implementations§

§

impl<__0, ___State> Freeze for SdrFileReaderBuilder<__0, ___State>
where ___State: Freeze,

§

impl<__0, ___State> RefUnwindSafe for SdrFileReaderBuilder<__0, ___State>
where ___State: RefUnwindSafe, __0: RefUnwindSafe,

§

impl<__0, ___State> Send for SdrFileReaderBuilder<__0, ___State>
where ___State: Send, __0: Send,

§

impl<__0, ___State> Sync for SdrFileReaderBuilder<__0, ___State>
where ___State: Sync, __0: Sync,

§

impl<__0, ___State> Unpin for SdrFileReaderBuilder<__0, ___State>
where ___State: Unpin, __0: Unpin,

§

impl<__0, ___State> UnwindSafe for SdrFileReaderBuilder<__0, ___State>
where ___State: UnwindSafe, __0: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.