Struct futuresdr::blocks::CopyRandBuilder
source · pub struct CopyRandBuilder<T: Copy + Send + 'static> { /* private fields */ }
Expand description
Builder for a CopyRand block
Implementations§
source§impl<T: Copy + Send + 'static> CopyRandBuilder<T>
impl<T: Copy + Send + 'static> CopyRandBuilder<T>
sourcepub fn new() -> Self
pub fn new() -> Self
Create builder with default values
By default, the number of items to copy is not constrained, i.e., max_copy
is set to
usize::MAX
.
Default values
max_copy
:usize:: MAX
sourcepub fn max_copy(self, max_copy: usize) -> Self
pub fn max_copy(self, max_copy: usize) -> Self
Set maximum number of samples to copy in one call to Kernel::work
.
Trait Implementations§
Auto Trait Implementations§
impl<T> RefUnwindSafe for CopyRandBuilder<T>where T: RefUnwindSafe,
impl<T> Send for CopyRandBuilder<T>
impl<T> Sync for CopyRandBuilder<T>where T: Sync,
impl<T> Unpin for CopyRandBuilder<T>where T: Unpin,
impl<T> UnwindSafe for CopyRandBuilder<T>where T: 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