Struct mun_syntax::ast::ModuleItem
source · pub struct ModuleItem { /* private fields */ }
Implementations§
source§impl ModuleItem
impl ModuleItem
pub fn kind(&self) -> ModuleItemKind
Trait Implementations§
source§impl AstNode for ModuleItem
impl AstNode for ModuleItem
fn can_cast(kind: SyntaxKind) -> bool
fn cast(syntax: SyntaxNode) -> Option<Self>
fn syntax(&self) -> &SyntaxNode
source§impl Clone for ModuleItem
impl Clone for ModuleItem
source§fn clone(&self) -> ModuleItem
fn clone(&self) -> ModuleItem
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ModuleItem
impl Debug for ModuleItem
source§impl From<FunctionDef> for ModuleItem
impl From<FunctionDef> for ModuleItem
source§fn from(n: FunctionDef) -> ModuleItem
fn from(n: FunctionDef) -> ModuleItem
Converts to this type from the input type.
source§impl From<StructDef> for ModuleItem
impl From<StructDef> for ModuleItem
source§fn from(n: StructDef) -> ModuleItem
fn from(n: StructDef) -> ModuleItem
Converts to this type from the input type.
source§impl From<TypeAliasDef> for ModuleItem
impl From<TypeAliasDef> for ModuleItem
source§fn from(n: TypeAliasDef) -> ModuleItem
fn from(n: TypeAliasDef) -> ModuleItem
Converts to this type from the input type.
source§impl From<Use> for ModuleItem
impl From<Use> for ModuleItem
source§fn from(n: Use) -> ModuleItem
fn from(n: Use) -> ModuleItem
Converts to this type from the input type.