pub struct Infix<'src, A, F, Atom, Op, I, E> { /* private fields */ }Available on crate feature
pratt only.Expand description
See infix.
Trait Implementations§
Source§impl<'src, I, O, E, A, F, Op> Operator<'src, I, O, E> for Infix<'src, A, F, O, Op, I, E>where
I: Input<'src>,
E: ParserExtra<'src, I>,
A: Parser<'src, I, Op, E>,
F: Fn(O, Op, O, &mut MapExtra<'src, '_, I, E>) -> O,
impl<'src, I, O, E, A, F, Op> Operator<'src, I, O, E> for Infix<'src, A, F, O, Op, I, E>where
I: Input<'src>,
E: ParserExtra<'src, I>,
A: Parser<'src, I, Op, E>,
F: Fn(O, Op, O, &mut MapExtra<'src, '_, I, E>) -> O,
impl<A: Copy, F: Copy, Atom, Op, I, E> Copy for Infix<'_, A, F, Atom, Op, I, E>
Auto Trait Implementations§
impl<'src, A, F, Atom, Op, I, E> Freeze for Infix<'src, A, F, Atom, Op, I, E>
impl<'src, A, F, Atom, Op, I, E> RefUnwindSafe for Infix<'src, A, F, Atom, Op, I, E>where
A: RefUnwindSafe,
F: RefUnwindSafe,
impl<'src, A, F, Atom, Op, I, E> Send for Infix<'src, A, F, Atom, Op, I, E>
impl<'src, A, F, Atom, Op, I, E> Sync for Infix<'src, A, F, Atom, Op, I, E>
impl<'src, A, F, Atom, Op, I, E> Unpin for Infix<'src, A, F, Atom, Op, I, E>
impl<'src, A, F, Atom, Op, I, E> UnsafeUnpin for Infix<'src, A, F, Atom, Op, I, E>where
A: UnsafeUnpin,
F: UnsafeUnpin,
impl<'src, A, F, Atom, Op, I, E> UnwindSafe for Infix<'src, A, F, Atom, Op, I, E>where
A: UnwindSafe,
F: 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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 moreSource§impl<'p, T> Seq<'p, T> for Twhere
T: Clone,
impl<'p, T> Seq<'p, T> for Twhere
T: Clone,
Source§impl<T, S> SpanWrap<S> for Twhere
S: WrappingSpan<T>,
impl<T, S> SpanWrap<S> for Twhere
S: WrappingSpan<T>,
Source§fn with_span(self, span: S) -> S::Spanned
fn with_span(self, span: S) -> S::Spanned
Invokes
WrappingSpan::make_wrapped to wrap an AST node in a span.