pub struct Expr {
pub kind: ExprKind,
pub line: u32,
pub column: Option<NonZeroU32>,
}Fields§
§kind: ExprKind§line: u32§column: Option<NonZeroU32>1-indexed column where this expression starts in the
source. None on synthetic nodes that don’t correspond
to a specific source position. Niche-packed into 4 bytes
so the column field costs nothing beyond a plain u32
— runtime error construction reads it out to render a
carat under the offending character.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Expr
impl RefUnwindSafe for Expr
impl Send for Expr
impl Sync for Expr
impl Unpin for Expr
impl UnsafeUnpin for Expr
impl UnwindSafe for Expr
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