Struct mun_syntax::ast::PathSegment
source · pub struct PathSegment { /* private fields */ }
Implementations§
source§impl PathSegment
impl PathSegment
pub fn parent_path(&self) -> Path
pub fn kind(&self) -> Option<PathSegmentKind>
pub fn has_colon_colon(&self) -> bool
Trait Implementations§
source§impl AstNode for PathSegment
impl AstNode for PathSegment
fn can_cast(kind: SyntaxKind) -> bool
fn cast(syntax: SyntaxNode) -> Option<Self>
fn syntax(&self) -> &SyntaxNode
source§impl Clone for PathSegment
impl Clone for PathSegment
source§fn clone(&self) -> PathSegment
fn clone(&self) -> PathSegment
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 more