pub struct Paren {
pub expr: Box<Expr>,
pub span: Range<usize>,
}Expand description
A parenthesized expression. A Paren can only contain a single expression.
Fields§
§expr: Box<Expr>The inner expression.
span: Range<usize>The region of the source code that this Paren was parsed from.
Implementations§
Trait Implementations§
Source§impl Latex for Paren
impl Latex for Paren
Source§fn as_display(&self) -> LatexFormatter<'_, Self>
fn as_display(&self) -> LatexFormatter<'_, Self>
Wraps the value in a
LatexFormatter, which implements Display.Source§impl<'source> Parse<'source> for Paren
impl<'source> Parse<'source> for Paren
impl Eq for Paren
impl StructuralPartialEq for Paren
Auto Trait Implementations§
impl Freeze for Paren
impl RefUnwindSafe for Paren
impl Send for Paren
impl Sync for Paren
impl Unpin for Paren
impl UnwindSafe for Paren
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