pub struct Expr { /* private fields */ }Expand description
表达式句柄:arena 索引 + 共享上下文引用。
Clone 廉价(引用计数 + 4 字节索引)。同一 Context 内结构相等 ⇔ 索引相等;
跨 Context 的 == 走结构比较。不实现 Hash/Ord:句柄的序只在所属
Context 内有意义,用 Context::cmp_expr。
Implementations§
Trait Implementations§
impl Eq for Expr
Auto Trait Implementations§
impl !RefUnwindSafe for Expr
impl !Send for Expr
impl !Sync for Expr
impl !UnwindSafe for Expr
impl Freeze for Expr
impl Unpin for Expr
impl UnsafeUnpin 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