pub enum MathArgItem<'a> {
Arg(Arg<'a>),
Space(Space<'a>),
Comma(char, &'a SyntaxNode),
Semicolon(char, &'a SyntaxNode),
LeftParen(char, &'a SyntaxNode),
RightParen(char, &'a SyntaxNode),
}Expand description
Variants§
Arg(Arg<'a>)
A normal argument.
Space(Space<'a>)
A space between arguments and other punctuation.
Comma(char, &'a SyntaxNode)
A comma separating arguments.
Semicolon(char, &'a SyntaxNode)
A semicolon separating arguments. This excludes semicolons that end embedded code expressions.
LeftParen(char, &'a SyntaxNode)
The left paren at the start of the arguments.
RightParen(char, &'a SyntaxNode)
The right paren at the end of the arguments.
Trait Implementations§
Source§impl<'a> Clone for MathArgItem<'a>
impl<'a> Clone for MathArgItem<'a>
Source§fn clone(&self) -> MathArgItem<'a>
fn clone(&self) -> MathArgItem<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a> Copy for MathArgItem<'a>
Source§impl<'a> Debug for MathArgItem<'a>
impl<'a> Debug for MathArgItem<'a>
Auto Trait Implementations§
impl<'a> Freeze for MathArgItem<'a>
impl<'a> RefUnwindSafe for MathArgItem<'a>
impl<'a> Send for MathArgItem<'a>
impl<'a> Sync for MathArgItem<'a>
impl<'a> Unpin for MathArgItem<'a>
impl<'a> UnsafeUnpin for MathArgItem<'a>
impl<'a> UnwindSafe for MathArgItem<'a>
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 more