pub struct ArrayLiteral { /* private fields */ }Implementations§
Source§impl ArrayLiteral
impl ArrayLiteral
Sourcepub fn elements(&self) -> impl Iterator<Item = SyntaxNode>
pub fn elements(&self) -> impl Iterator<Item = SyntaxNode>
The literal’s element expressions, in source order. Empty for [].
Raw SyntaxNode children, same idiom CallExpr::arg_list’s callers
use for ARG_LIST — this crate has no ast::Expr union type to cast
into (unlike brink-syntax’s own ArrayLiteral::elements).
Trait Implementations§
Source§impl AstNode for ArrayLiteral
impl AstNode for ArrayLiteral
Source§fn can_cast(kind: SyntaxKind) -> bool
fn can_cast(kind: SyntaxKind) -> bool
Returns
true for a node with a SyntaxKind this type can wrap.Source§fn cast(node: SyntaxNode) -> Option<Self>
fn cast(node: SyntaxNode) -> Option<Self>
Try to cast a generic
SyntaxNode into this typed wrapper.Source§fn syntax(&self) -> &SyntaxNode
fn syntax(&self) -> &SyntaxNode
Access the underlying
SyntaxNode.Source§impl Clone for ArrayLiteral
impl Clone for ArrayLiteral
Source§fn clone(&self) -> ArrayLiteral
fn clone(&self) -> ArrayLiteral
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 ArrayLiteral
impl Debug for ArrayLiteral
Source§impl Display for ArrayLiteral
impl Display for ArrayLiteral
impl Eq for ArrayLiteral
Source§impl Hash for ArrayLiteral
impl Hash for ArrayLiteral
Source§impl PartialEq for ArrayLiteral
impl PartialEq for ArrayLiteral
impl StructuralPartialEq for ArrayLiteral
Auto Trait Implementations§
impl !RefUnwindSafe for ArrayLiteral
impl !Send for ArrayLiteral
impl !Sync for ArrayLiteral
impl !UnwindSafe for ArrayLiteral
impl Freeze for ArrayLiteral
impl Unpin for ArrayLiteral
impl UnsafeUnpin for ArrayLiteral
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