pub struct Expr<P: Phase = Raw> {
pub kind: ExprKind<P>,
pub span: Span,
/* private fields */
}Expand description
An expression node.
Construct via Expr::new — direct struct literal syntax is blocked
by the private phase marker.
Fields§
§kind: ExprKind<P>§span: SpanImplementations§
Trait Implementations§
Source§impl FormatEquivalent for Expr
impl FormatEquivalent for Expr
Source§fn format_equivalent(&self, other: &Self) -> bool
fn format_equivalent(&self, other: &Self) -> bool
Returns
true if self and other are equivalent up to formatting.Auto Trait Implementations§
impl<P> Freeze for Expr<P>
impl<P> RefUnwindSafe for Expr<P>
impl<P> Send for Expr<P>
impl<P> Sync for Expr<P>
impl<P> Unpin for Expr<P>
impl<P> UnsafeUnpin for Expr<P>
impl<P> UnwindSafe for Expr<P>
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