pub struct List(/* private fields */);Expand description
A list / sequence [ a, b, c ].
Implementations§
Source§impl List
impl List
Sourcepub fn cast(node: SyntaxNode) -> Option<Self>
pub fn cast(node: SyntaxNode) -> Option<Self>
Wrap a SyntaxKind::List node, or None for any other kind.
Sourcepub fn syntax(&self) -> &SyntaxNode
pub fn syntax(&self) -> &SyntaxNode
The underlying SyntaxNode.
Trait Implementations§
impl Eq for List
impl StructuralPartialEq for List
Auto Trait Implementations§
impl !RefUnwindSafe for List
impl !Send for List
impl !Sync for List
impl !UnwindSafe for List
impl Freeze for List
impl Unpin for List
impl UnsafeUnpin for List
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