Enum rune::ast::PathSegment [−][src]
pub enum PathSegment { SelfType(SelfType), SelfValue(SelfValue), Ident(Ident), Crate(Crate), Super(Super), Generics(AngleBracketed<ExprWithoutBinary, Comma>), }
Expand description
Part of a ::
separated path.
Variants
A path segment that contains Self
.
Tuple Fields of SelfType
0: SelfType
A path segment that contains self
.
Tuple Fields of SelfValue
0: SelfValue
A path segment that is an identifier.
Tuple Fields of Ident
0: Ident
The crate
keyword used as a path segment.
Tuple Fields of Crate
0: Crate
The super
keyword use as a path segment.
Tuple Fields of Super
0: Super
A path segment that is a generic argument.
Tuple Fields of Generics
Implementations
Borrow as an identifier.
This is only allowed if the PathSegment is Ident(_)
and not Crate
or Super
.
Borrow as a mutable identifier.
This is only allowed if the PathSegment is Ident(_)
and not Crate
or Super
.
Trait Implementations
Parse the current item from the parser.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Turn the current item into tokens.
Auto Trait Implementations
impl RefUnwindSafe for PathSegment
impl Send for PathSegment
impl Sync for PathSegment
impl Unpin for PathSegment
impl UnwindSafe for PathSegment
Blanket Implementations
Mutably borrows from an owned value. Read more