pub struct Source<F, A>where
F: FnMut() -> A + Send + 'static,
A: Send + 'static,{ /* private fields */ }
Expand description
Repeatedly apply a function to generate samples.
No inputs.
out
: Output samples
use futuresdr::blocks::Source;
use futuresdr::runtime::Flowgraph;
let mut fg = Flowgraph::new();
let source = fg.add_block(Source::new(|| { 0.0f32 }));
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
Returns the argument unchanged.
Instruments this type with the provided
Span
, returning an
Instrumented
wrapper.
Read more
Calls U::from(self)
.
That is, this conversion is whatever the implementation of
From<T> for U
chooses to do.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.