pub struct DeclList(/* private fields */);Expand description
decl-list = _ [export-list _] +(decl _)Implementations§
Source§impl DeclList
impl DeclList
pub fn decls(&self) -> AstChildren<Decl> ⓘ
pub fn export_list(&self) -> Option<ExportList>
pub fn trivias(&self) -> AstChildren<Trivia> ⓘ
Trait Implementations§
Source§impl AstNode for DeclList
impl AstNode for DeclList
type Language = Lang
fn syntax(&self) -> &SyntaxNode<Self::Language>
fn can_cast(kind: <Self::Language as Language>::Kind) -> bool
fn cast(node: SyntaxNode<Self::Language>) -> Option<Self>
fn clone_for_update(&self) -> Selfwhere
Self: Sized,
fn clone_subtree(&self) -> Selfwhere
Self: Sized,
impl Eq for DeclList
impl StructuralPartialEq for DeclList
Auto Trait Implementations§
impl !RefUnwindSafe for DeclList
impl !Send for DeclList
impl !Sync for DeclList
impl !UnwindSafe for DeclList
impl Freeze for DeclList
impl Unpin for DeclList
impl UnsafeUnpin for DeclList
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