pub struct ArrayExpression<'s> {
pub open: &'s Token<'s>,
pub values: Vec<ArrayValue<'s>>,
pub spread: Option<&'s Token<'s>>,
pub close: &'s Token<'s>,
}Expand description
An array literal.
Grammar: [ ArrayValue* ...? ]
Fields§
§open: &'s Token<'s>§values: Vec<ArrayValue<'s>>§spread: Option<&'s Token<'s>>§close: &'s Token<'s>Trait Implementations§
Source§impl<'s> Clone for ArrayExpression<'s>
impl<'s> Clone for ArrayExpression<'s>
Source§fn clone(&self) -> ArrayExpression<'s>
fn clone(&self) -> ArrayExpression<'s>
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 moreAuto Trait Implementations§
impl<'s> Freeze for ArrayExpression<'s>
impl<'s> RefUnwindSafe for ArrayExpression<'s>
impl<'s> Send for ArrayExpression<'s>
impl<'s> Sync for ArrayExpression<'s>
impl<'s> Unpin for ArrayExpression<'s>
impl<'s> UnwindSafe for ArrayExpression<'s>
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