pub struct DefinitionItem(/* private fields */);Implementations§
Source§impl DefinitionItem
impl DefinitionItem
pub fn definitions(&self) -> AstChildren<Definition> ⓘ
pub fn is_compact(&self) -> bool
pub fn is_loose(&self) -> bool
Trait Implementations§
Source§impl AstNode for DefinitionItem
impl AstNode for DefinitionItem
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 DefinitionItem
impl !RefUnwindSafe for DefinitionItem
impl !Send for DefinitionItem
impl !Sync for DefinitionItem
impl Unpin for DefinitionItem
impl UnsafeUnpin for DefinitionItem
impl !UnwindSafe for DefinitionItem
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