pub struct ObjectExpr {
pub class: Symbol,
pub fields: Vec<(Symbol, Expr)>,
}Expand description
The decoded form of an object expression: a class symbol and its fields.
A view over the expr/object extension form, letting object-grammar shapes
read a structured object’s class and named field expressions without
re-walking the raw Expr.
Fields§
§class: SymbolThe class this object form is tagged with.
fields: Vec<(Symbol, Expr)>The object’s named fields, in source order.
Implementations§
Trait Implementations§
Source§impl Clone for ObjectExpr
impl Clone for ObjectExpr
Source§fn clone(&self) -> ObjectExpr
fn clone(&self) -> ObjectExpr
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 ObjectExpr
impl Debug for ObjectExpr
impl Eq for ObjectExpr
Source§impl PartialEq for ObjectExpr
impl PartialEq for ObjectExpr
Source§fn eq(&self, other: &ObjectExpr) -> bool
fn eq(&self, other: &ObjectExpr) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ObjectExpr
Auto Trait Implementations§
impl Freeze for ObjectExpr
impl RefUnwindSafe for ObjectExpr
impl Send for ObjectExpr
impl Sync for ObjectExpr
impl Unpin for ObjectExpr
impl UnsafeUnpin for ObjectExpr
impl UnwindSafe for ObjectExpr
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