pub struct ModuleDef(/* private fields */);Expand description
A module definition I == INSTANCE M WITH ....
Implementations§
Trait Implementations§
Source§impl AstNode for ModuleDef
impl AstNode for ModuleDef
Source§fn can_cast(kind: SyntaxKind) -> bool
fn can_cast(kind: SyntaxKind) -> bool
Whether nodes of
kind can be wrapped.Source§fn cast(node: SyntaxNode) -> Option<Self>
fn cast(node: SyntaxNode) -> Option<Self>
Wraps
node if it has the right kind.Source§fn syntax(&self) -> &SyntaxNode
fn syntax(&self) -> &SyntaxNode
The underlying node.
impl Eq for ModuleDef
impl StructuralPartialEq for ModuleDef
Auto Trait Implementations§
impl !RefUnwindSafe for ModuleDef
impl !Send for ModuleDef
impl !Sync for ModuleDef
impl !UnwindSafe for ModuleDef
impl Forget for ModuleDef
impl Freeze for ModuleDef
impl Move for ModuleDef
impl Unpin for ModuleDef
impl UnsafeUnpin for ModuleDef
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