Enum ra_ap_syntax::ast::PathSegmentKind
source · pub enum PathSegmentKind {
Name(NameRef),
Type {
type_ref: Option<Type>,
trait_ref: Option<PathType>,
},
SelfTypeKw,
SelfKw,
SuperKw,
CrateKw,
}
Variants§
Trait Implementations§
source§impl Clone for PathSegmentKind
impl Clone for PathSegmentKind
source§fn clone(&self) -> PathSegmentKind
fn clone(&self) -> PathSegmentKind
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 PathSegmentKind
impl Debug for PathSegmentKind
source§impl PartialEq for PathSegmentKind
impl PartialEq for PathSegmentKind
source§fn eq(&self, other: &PathSegmentKind) -> bool
fn eq(&self, other: &PathSegmentKind) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for PathSegmentKind
impl StructuralPartialEq for PathSegmentKind
Auto Trait Implementations§
impl Freeze for PathSegmentKind
impl !RefUnwindSafe for PathSegmentKind
impl !Send for PathSegmentKind
impl !Sync for PathSegmentKind
impl Unpin for PathSegmentKind
impl !UnwindSafe for PathSegmentKind
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
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.