pub struct Matching<C, P> { /* private fields */ }Implementations§
Source§impl<C, P> Matching<C, P>
impl<C, P> Matching<C, P>
pub fn rewrite_matched<B, F>(self, rewrite: F) -> impl Rule<C::Output>where
C: PlanNode + MatchInputs + OptimizePlan,
P: for<'a> MatchAgainst<C::Inputs<'a>, Bindings = B> + Send + Sync + 'static,
B: 'static,
F: Fn(&C, B, &Stats<'_>) -> Option<C::Output> + Send + Sync + 'static,
Trait Implementations§
Source§impl<C, P, B> Pattern<<C as OptimizePlan>::Output> for Matching<C, P>where
C: PlanNode + MatchInputs + OptimizePlan,
P: for<'a> MatchAgainst<C::Inputs<'a>, Bindings = B>,
impl<C, P, B> Pattern<<C as OptimizePlan>::Output> for Matching<C, P>where
C: PlanNode + MatchInputs + OptimizePlan,
P: for<'a> MatchAgainst<C::Inputs<'a>, Bindings = B>,
Auto Trait Implementations§
impl<C, P> Freeze for Matching<C, P>where
P: Freeze,
impl<C, P> RefUnwindSafe for Matching<C, P>where
P: RefUnwindSafe,
impl<C, P> Send for Matching<C, P>where
P: Send,
impl<C, P> Sync for Matching<C, P>where
P: Sync,
impl<C, P> Unpin for Matching<C, P>where
P: Unpin,
impl<C, P> UnsafeUnpin for Matching<C, P>where
P: UnsafeUnpin,
impl<C, P> UnwindSafe for Matching<C, P>where
P: 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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
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