Struct ra_syntax::ast::PathSegment
source · pub struct PathSegment<'a> { /* private fields */ }
Implementations
sourceimpl<'a> PathSegment<'a>
impl<'a> PathSegment<'a>
pub fn parent_path(self) -> Path<'a>
pub fn kind(self) -> Option<PathSegmentKind<'a>>
Trait Implementations
sourceimpl<'a> AstNode<'a> for PathSegment<'a>
impl<'a> AstNode<'a> for PathSegment<'a>
fn cast(syntax: SyntaxNodeRef<'a>) -> Option<Self>
fn syntax(self) -> SyntaxNodeRef<'a>
sourceimpl<'a> Clone for PathSegment<'a>
impl<'a> Clone for PathSegment<'a>
sourcefn clone(&self) -> PathSegment<'a>
fn clone(&self) -> PathSegment<'a>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl<'a> Debug for PathSegment<'a>
impl<'a> Debug for PathSegment<'a>
sourceimpl<'a> From<PathSegment<'a>> for PathSegmentNode
impl<'a> From<PathSegment<'a>> for PathSegmentNode
sourcefn from(ast: PathSegment<'a>) -> PathSegmentNode
fn from(ast: PathSegment<'a>) -> PathSegmentNode
Converts to this type from the input type.
impl<'a> Copy for PathSegment<'a>
Auto Trait Implementations
impl<'a> !RefUnwindSafe for PathSegment<'a>
impl<'a> Send for PathSegment<'a>
impl<'a> Sync for PathSegment<'a>
impl<'a> Unpin for PathSegment<'a>
impl<'a> !UnwindSafe for PathSegment<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more