pub struct Decl(/* private fields */);Implementations§
Trait Implementations§
Source§impl AstNode for Decl
impl AstNode for Decl
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 Decl
impl StructuralPartialEq for Decl
Auto Trait Implementations§
impl Freeze for Decl
impl !RefUnwindSafe for Decl
impl !Send for Decl
impl !Sync for Decl
impl Unpin for Decl
impl !UnwindSafe for Decl
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