JoinInner

Struct JoinInner 

Source
pub struct JoinInner<'a, Lhs, Rhs, KeyLhs, KeyRhs, Pred, Proj> { /* private fields */ }

Implementations§

Source§

impl<Lhs, Rhs, KeyLhs, KeyRhs, Pred, Proj> JoinInner<'_, Lhs, Rhs, KeyLhs, KeyRhs, Pred, Proj>

Source

pub fn new( lhs: Lhs, rhs: Rhs, key_lhs: KeyLhs, key_rhs: KeyRhs, predicate: Pred, projection: Proj, ) -> Self

Trait Implementations§

Source§

impl<'a, Lhs: Clone, Rhs: Clone, KeyLhs: Clone, KeyRhs: Clone, Pred: Clone, Proj: Clone> Clone for JoinInner<'a, Lhs, Rhs, KeyLhs, KeyRhs, Pred, Proj>

Source§

fn clone(&self) -> JoinInner<'a, Lhs, Rhs, KeyLhs, KeyRhs, Pred, Proj>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<'a, Lhs: Debug, Rhs: Debug, KeyLhs: Debug, KeyRhs: Debug, Pred: Debug, Proj: Debug> Debug for JoinInner<'a, Lhs, Rhs, KeyLhs, KeyRhs, Pred, Proj>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'a, Lhs, Rhs, KeyLhs, KeyRhs, Pred, Proj> RelOps<'a> for JoinInner<'a, Lhs, Rhs, KeyLhs, KeyRhs, Pred, Proj>
where Lhs: RelOps<'a>, Rhs: RelOps<'a>, KeyLhs: FnMut(&RelValue<'a>) -> AlgebraicValue, KeyRhs: FnMut(&RelValue<'a>) -> AlgebraicValue, Pred: FnMut(&RelValue<'a>, &RelValue<'a>) -> bool, Proj: FnMut(RelValue<'a>, RelValue<'a>) -> RelValue<'a>,

Source§

fn next(&mut self) -> Option<RelValue<'a>>

Advances the iterator and returns the next RelValue.
Source§

fn select<P>(self, predicate: P) -> Select<Self, P>
where P: FnMut(&RelValue<'_>) -> bool, Self: Sized,

Creates an Iterator which uses a closure to determine if a [RelValueRef] should be yielded. Read more
Source§

fn project<'b, P>( self, cols: &'b [ColExpr], extractor: P, ) -> Project<'b, Self, P>
where P: for<'c> FnMut(&[ColExpr], RelValue<'c>) -> RelValue<'c>, Self: Sized,

Creates an Iterator which uses a closure that projects to a new RelValue extracted from the current. Read more
Source§

fn join_inner<Pred, Proj, KeyLhs, KeyRhs, Rhs>( self, with: Rhs, key_lhs: KeyLhs, key_rhs: KeyRhs, predicate: Pred, project: Proj, ) -> JoinInner<'a, Self, Rhs, KeyLhs, KeyRhs, Pred, Proj>
where Self: Sized, Pred: FnMut(&RelValue<'a>, &RelValue<'a>) -> bool, Proj: FnMut(RelValue<'a>, RelValue<'a>) -> RelValue<'a>, KeyLhs: FnMut(&RelValue<'a>) -> AlgebraicValue, KeyRhs: FnMut(&RelValue<'a>) -> AlgebraicValue, Rhs: RelOps<'a>,

Intersection between the left and the right, both (non-sorted) iterators. Read more
Source§

fn collect_vec<T>(self, convert: impl FnMut(RelValue<'a>) -> T) -> Vec<T>
where Self: Sized,

Collect all the rows in this relation into a Vec<T> given a function RelValue<'a> -> T.
Source§

fn iter(&mut self) -> impl Iterator<Item = RelValue<'a>>
where Self: Sized,

Auto Trait Implementations§

§

impl<'a, Lhs, Rhs, KeyLhs, KeyRhs, Pred, Proj> Freeze for JoinInner<'a, Lhs, Rhs, KeyLhs, KeyRhs, Pred, Proj>
where Lhs: Freeze, Rhs: Freeze, KeyLhs: Freeze, KeyRhs: Freeze, Pred: Freeze, Proj: Freeze,

§

impl<'a, Lhs, Rhs, KeyLhs, KeyRhs, Pred, Proj> !RefUnwindSafe for JoinInner<'a, Lhs, Rhs, KeyLhs, KeyRhs, Pred, Proj>

§

impl<'a, Lhs, Rhs, KeyLhs, KeyRhs, Pred, Proj> Send for JoinInner<'a, Lhs, Rhs, KeyLhs, KeyRhs, Pred, Proj>
where Lhs: Send, Rhs: Send, KeyLhs: Send, KeyRhs: Send, Pred: Send, Proj: Send,

§

impl<'a, Lhs, Rhs, KeyLhs, KeyRhs, Pred, Proj> Sync for JoinInner<'a, Lhs, Rhs, KeyLhs, KeyRhs, Pred, Proj>
where Lhs: Sync, Rhs: Sync, KeyLhs: Sync, KeyRhs: Sync, Pred: Sync, Proj: Sync,

§

impl<'a, Lhs, Rhs, KeyLhs, KeyRhs, Pred, Proj> Unpin for JoinInner<'a, Lhs, Rhs, KeyLhs, KeyRhs, Pred, Proj>
where Lhs: Unpin, Rhs: Unpin, KeyLhs: Unpin, KeyRhs: Unpin, Pred: Unpin, Proj: Unpin,

§

impl<'a, Lhs, Rhs, KeyLhs, KeyRhs, Pred, Proj> !UnwindSafe for JoinInner<'a, Lhs, Rhs, KeyLhs, KeyRhs, Pred, Proj>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.