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 StructuralEq for PathSegmentKind
impl StructuralPartialEq for PathSegmentKind
Auto Trait Implementations§
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.