pub struct ObjectExpr {
pub fields: IndexMap<String, Expr>,
pub braces: (Token, Token),
}Expand description
Represents an object expression in the AST.
An object expression is a collection of key-value pairs.
Fields§
§fields: IndexMap<String, Expr>The key-value pairs in the object.
braces: (Token, Token)The token representing opening and closing braces.
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 · 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
Source§impl PartialEq for ObjectExpr
impl PartialEq for ObjectExpr
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 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