pub struct ListLiteral {
pub elements: Vec<Expr>,
pub span: Span,
}Expand description
A list literal: [1, 2, 3].
Fields§
§elements: Vec<Expr>§span: SpanTrait Implementations§
Source§impl Clone for ListLiteral
impl Clone for ListLiteral
Source§fn clone(&self) -> ListLiteral
fn clone(&self) -> ListLiteral
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 ListLiteral
impl Debug for ListLiteral
Source§impl<'de> Deserialize<'de> for ListLiteral
impl<'de> Deserialize<'de> for ListLiteral
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ListLiteral
impl PartialEq for ListLiteral
Source§impl Serialize for ListLiteral
impl Serialize for ListLiteral
impl StructuralPartialEq for ListLiteral
Auto Trait Implementations§
impl Freeze for ListLiteral
impl RefUnwindSafe for ListLiteral
impl Send for ListLiteral
impl Sync for ListLiteral
impl Unpin for ListLiteral
impl UnsafeUnpin for ListLiteral
impl UnwindSafe for ListLiteral
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