pub struct JoinedSource<S, A, B, K, EA, EB, KA, KB, F, P, Out> { /* private fields */ }Expand description
Projected source over a keyed cross join: each accepted (A, B) pair with
equal keys emits one Out row. Built by stream::cross::Bi::project.
Trait Implementations§
Source§impl<S, A, B, K, EA, EB, KA, KB, F, P, Out> Source<S, Out> for JoinedSource<S, A, B, K, EA, EB, KA, KB, F, P, Out>where
S: Send + Sync + 'static,
A: Send + Sync + 'static,
B: Send + Sync + 'static,
K: Eq + Hash + Clone + Send + Sync + 'static,
EA: CollectionExtract<S, Item = A>,
EB: CollectionExtract<S, Item = B>,
KA: Fn(&A) -> K + Send + Sync,
KB: Fn(&B) -> K + Send + Sync,
F: BiFilter<S, A, B>,
P: Fn(&A, &B) -> Out + Send + Sync,
Out: Send + Sync + 'static,
impl<S, A, B, K, EA, EB, KA, KB, F, P, Out> Source<S, Out> for JoinedSource<S, A, B, K, EA, EB, KA, KB, F, P, Out>where
S: Send + Sync + 'static,
A: Send + Sync + 'static,
B: Send + Sync + 'static,
K: Eq + Hash + Clone + Send + Sync + 'static,
EA: CollectionExtract<S, Item = A>,
EB: CollectionExtract<S, Item = B>,
KA: Fn(&A) -> K + Send + Sync,
KB: Fn(&B) -> K + Send + Sync,
F: BiFilter<S, A, B>,
P: Fn(&A, &B) -> Out + Send + Sync,
Out: Send + Sync + 'static,
Source§const MAX_EMITS: usize = 1
const MAX_EMITS: usize = 1
The most rows the source emits for one owner (see
Projection::MAX_EMITS).Source§type State = JoinedState<K>
type State = JoinedState<K>
State the source keeps beside the retained rows, such as a join index.
Source§fn source_count(&self) -> usize
fn source_count(&self) -> usize
Number of entity collections the source reads.
Source§fn change_source(&self, slot: usize) -> ChangeSource
fn change_source(&self, slot: usize) -> ChangeSource
How changes reach collection
slot.Source§fn build_state(&self, solution: &S) -> Self::State
fn build_state(&self, solution: &S) -> Self::State
Builds the source state for
solution.Source§fn collect_all<V>(&self, solution: &S, state: &Self::State, visit: V)where
V: FnMut(RowCoordinate, Out),
fn collect_all<V>(&self, solution: &S, state: &Self::State, visit: V)where
V: FnMut(RowCoordinate, Out),
Visits every row of
solution with its coordinate.Source§fn collect_entity<V>(
&self,
solution: &S,
state: &Self::State,
slot: usize,
entity_index: usize,
visit: V,
)where
V: FnMut(RowCoordinate, Out),
fn collect_entity<V>(
&self,
solution: &S,
state: &Self::State,
slot: usize,
entity_index: usize,
visit: V,
)where
V: FnMut(RowCoordinate, Out),
Visits the rows owned by entity
entity_index of collection slot.Auto Trait Implementations§
impl<S, A, B, K, EA, EB, KA, KB, F, P, Out> Forget for JoinedSource<S, A, B, K, EA, EB, KA, KB, F, P, Out>
impl<S, A, B, K, EA, EB, KA, KB, F, P, Out> Freeze for JoinedSource<S, A, B, K, EA, EB, KA, KB, F, P, Out>
impl<S, A, B, K, EA, EB, KA, KB, F, P, Out> Move for JoinedSource<S, A, B, K, EA, EB, KA, KB, F, P, Out>
impl<S, A, B, K, EA, EB, KA, KB, F, P, Out> RefUnwindSafe for JoinedSource<S, A, B, K, EA, EB, KA, KB, F, P, Out>where
EA: RefUnwindSafe,
EB: RefUnwindSafe,
KA: RefUnwindSafe,
KB: RefUnwindSafe,
F: RefUnwindSafe,
P: RefUnwindSafe,
PhantomData<(fn() -> S, fn() -> A, fn() -> B, fn() -> K, fn() -> Out)>: RefUnwindSafe,
impl<S, A, B, K, EA, EB, KA, KB, F, P, Out> Send for JoinedSource<S, A, B, K, EA, EB, KA, KB, F, P, Out>
impl<S, A, B, K, EA, EB, KA, KB, F, P, Out> Sync for JoinedSource<S, A, B, K, EA, EB, KA, KB, F, P, Out>
impl<S, A, B, K, EA, EB, KA, KB, F, P, Out> Unpin for JoinedSource<S, A, B, K, EA, EB, KA, KB, F, P, Out>
impl<S, A, B, K, EA, EB, KA, KB, F, P, Out> UnsafeUnpin for JoinedSource<S, A, B, K, EA, EB, KA, KB, F, P, Out>where
EA: UnsafeUnpin,
EB: UnsafeUnpin,
KA: UnsafeUnpin,
KB: UnsafeUnpin,
F: UnsafeUnpin,
P: UnsafeUnpin,
PhantomData<(fn() -> S, fn() -> A, fn() -> B, fn() -> K, fn() -> Out)>: UnsafeUnpin,
impl<S, A, B, K, EA, EB, KA, KB, F, P, Out> UnwindSafe for JoinedSource<S, A, B, K, EA, EB, KA, KB, F, P, Out>where
EA: UnwindSafe,
EB: UnwindSafe,
KA: UnwindSafe,
KB: UnwindSafe,
F: UnwindSafe,
P: UnwindSafe,
PhantomData<(fn() -> S, fn() -> A, fn() -> B, fn() -> K, fn() -> Out)>: 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