pub struct List(/* private fields */);Implementations§
Source§impl List
impl List
Sourcepub fn is_loose(&self) -> bool
pub fn is_loose(&self) -> bool
Returns true if this is a loose list (has blank lines between items).
Sourcepub fn is_compact(&self) -> bool
pub fn is_compact(&self) -> bool
Returns true if this is a compact/tight list (no blank lines between items).
This is the inverse of is_loose().
Sourcepub fn items(&self) -> AstChildren<ListItem> ⓘ
pub fn items(&self) -> AstChildren<ListItem> ⓘ
Returns an iterator over the list items (LIST_ITEM nodes).
Trait Implementations§
Source§impl AstNode for List
impl AstNode for List
type Language = PanacheLanguage
fn can_cast(kind: SyntaxKind) -> bool
fn cast(syntax: SyntaxNode) -> Option<Self>
fn syntax(&self) -> &SyntaxNode
fn clone_for_update(&self) -> Selfwhere
Self: Sized,
fn clone_subtree(&self) -> Selfwhere
Self: Sized,
Auto Trait Implementations§
impl Freeze for List
impl !RefUnwindSafe for List
impl !Send for List
impl !Sync for List
impl Unpin for List
impl UnsafeUnpin for List
impl !UnwindSafe 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