pub enum SourceRustAnchor {
Crate,
SelfModule,
Super(usize),
Absolute,
Unqualified,
}Expand description
Explicit anchor of a grammar-owned Rust path.
Variants§
Crate
The selected crate target’s root module.
SelfModule
The source’s actual containing module.
Super(usize)
A bounded number of containing module parents.
Absolute
An explicit external-prelude root, without guessed crate ownership.
Unqualified
A bare path whose crate or module ownership needs independent evidence.
Trait Implementations§
Source§impl Clone for SourceRustAnchor
impl Clone for SourceRustAnchor
Source§fn clone(&self) -> SourceRustAnchor
fn clone(&self) -> SourceRustAnchor
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SourceRustAnchor
Source§impl Debug for SourceRustAnchor
impl Debug for SourceRustAnchor
impl Eq for SourceRustAnchor
Source§impl Ord for SourceRustAnchor
impl Ord for SourceRustAnchor
Source§fn cmp(&self, other: &SourceRustAnchor) -> Ordering
fn cmp(&self, other: &SourceRustAnchor) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for SourceRustAnchor
impl PartialEq for SourceRustAnchor
Source§fn eq(&self, other: &SourceRustAnchor) -> bool
fn eq(&self, other: &SourceRustAnchor) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for SourceRustAnchor
impl PartialOrd for SourceRustAnchor
impl StructuralPartialEq for SourceRustAnchor
Auto Trait Implementations§
impl Freeze for SourceRustAnchor
impl RefUnwindSafe for SourceRustAnchor
impl Send for SourceRustAnchor
impl Sync for SourceRustAnchor
impl Unpin for SourceRustAnchor
impl UnsafeUnpin for SourceRustAnchor
impl UnwindSafe for SourceRustAnchor
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.