pub struct SdrFileReaderBuilder<__0, ___State = __SdrFileReaderBuilderInitialState>{ /* 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)>
impl<__0, __FilePath, __SamplesPerChunk, __SampleType> SdrFileReaderBuilder<__0, (__FilePath, __SamplesPerChunk, __SampleType)>
Sourcepub 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>,
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.
Sourcepub fn file_path(
self,
value: __0,
) -> <Self as __SdrFileReaderBuilderSetMember>::FilePathwhere
__FilePath: IsUnset,
pub fn file_path(
self,
value: __0,
) -> <Self as __SdrFileReaderBuilderSetMember>::FilePathwhere
__FilePath: IsUnset,
Sets the value of file_path
. See SdrFileReader::builder()
for more info.
Sourcepub fn samples_per_chunk(
self,
value: usize,
) -> <Self as __SdrFileReaderBuilderSetMember>::SamplesPerChunkwhere
__SamplesPerChunk: IsUnset,
pub fn samples_per_chunk(
self,
value: usize,
) -> <Self as __SdrFileReaderBuilderSetMember>::SamplesPerChunkwhere
__SamplesPerChunk: IsUnset,
Sets the value of samples_per_chunk
. See SdrFileReader::builder()
for more info.
Sourcepub fn sample_type(
self,
value: SampleType,
) -> <Self as __SdrFileReaderBuilderSetMember>::SampleTypewhere
__SampleType: IsUnset,
pub fn sample_type(
self,
value: SampleType,
) -> <Self as __SdrFileReaderBuilderSetMember>::SampleTypewhere
__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>
impl<__0, ___State> Sync for SdrFileReaderBuilder<__0, ___State>
impl<__0, ___State> Unpin for SdrFileReaderBuilder<__0, ___State>
impl<__0, ___State> UnwindSafe for SdrFileReaderBuilder<__0, ___State>where
___State: UnwindSafe,
__0: UnwindSafe,
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