pub struct SourceChain<S, T>(pub S, pub T);Expand description
Fuse a transform onto a source, yielding the transform’s output: the
static analog of a source ! transform bin. A const-arity runner slot
that takes one source can then carry a whole linear branch, which is how a
fan-in graph gets per-input chains (run_sources_fanin_sink with a
SourceChain in each source slot). A frame the transform drops
(Ok(None)) is pulled past (the fused source polls the inner source
again), so downstream sees only surviving frames; end of stream is the
inner source’s.
Tuple Fields§
§0: S§1: TTrait Implementations§
Source§impl<S: StaticSource, T: StaticTransform> StaticSource for SourceChain<S, T>
impl<S: StaticSource, T: StaticTransform> StaticSource for SourceChain<S, T>
Auto Trait Implementations§
impl<S, T> Freeze for SourceChain<S, T>
impl<S, T> RefUnwindSafe for SourceChain<S, T>where
S: RefUnwindSafe,
T: RefUnwindSafe,
impl<S, T> Send for SourceChain<S, T>
impl<S, T> Sync for SourceChain<S, T>
impl<S, T> Unpin for SourceChain<S, T>
impl<S, T> UnsafeUnpin for SourceChain<S, T>where
S: UnsafeUnpin,
T: UnsafeUnpin,
impl<S, T> UnwindSafe for SourceChain<S, T>where
S: UnwindSafe,
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