pub struct LocatedExpr {
pub expr: Expr,
pub origin: Option<Origin>,
}Fields§
§expr: ExprThe expression.
origin: Option<Origin>The optional source origin.
Implementations§
Source§impl LocatedExpr
impl LocatedExpr
Sourcepub fn canonical_eq(&self, other: &Self) -> bool
pub fn canonical_eq(&self, other: &Self) -> bool
Compares two located expressions canonically, ignoring origin.
Trait Implementations§
Source§impl Clone for LocatedExpr
impl Clone for LocatedExpr
Source§fn clone(&self) -> LocatedExpr
fn clone(&self) -> LocatedExpr
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 moreSource§impl Debug for LocatedExpr
impl Debug for LocatedExpr
impl Eq for LocatedExpr
Source§impl Hash for LocatedExpr
impl Hash for LocatedExpr
Source§impl PartialEq for LocatedExpr
impl PartialEq for LocatedExpr
Source§fn eq(&self, other: &LocatedExpr) -> bool
fn eq(&self, other: &LocatedExpr) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LocatedExpr
Auto Trait Implementations§
impl Freeze for LocatedExpr
impl RefUnwindSafe for LocatedExpr
impl Send for LocatedExpr
impl Sync for LocatedExpr
impl Unpin for LocatedExpr
impl UnsafeUnpin for LocatedExpr
impl UnwindSafe for LocatedExpr
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