pub struct SourceRustPath {
pub anchor: SourceRustAnchor,
pub segments: Vec<String>,
}Expand description
A complete source path before deciding whether its final segment is an item.
Fields§
§anchor: SourceRustAnchorGrammar-owned root role, independent from path length.
segments: Vec<String>Ordered identifiers after the explicit anchor.
Trait Implementations§
Source§impl Clone for SourceRustPath
impl Clone for SourceRustPath
Source§fn clone(&self) -> SourceRustPath
fn clone(&self) -> SourceRustPath
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 moreSource§impl Debug for SourceRustPath
impl Debug for SourceRustPath
impl Eq for SourceRustPath
Source§impl Ord for SourceRustPath
impl Ord for SourceRustPath
Source§fn cmp(&self, other: &SourceRustPath) -> Ordering
fn cmp(&self, other: &SourceRustPath) -> 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 SourceRustPath
impl PartialEq for SourceRustPath
Source§fn eq(&self, other: &SourceRustPath) -> bool
fn eq(&self, other: &SourceRustPath) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for SourceRustPath
impl PartialOrd for SourceRustPath
impl StructuralPartialEq for SourceRustPath
Auto Trait Implementations§
impl Freeze for SourceRustPath
impl RefUnwindSafe for SourceRustPath
impl Send for SourceRustPath
impl Sync for SourceRustPath
impl Unpin for SourceRustPath
impl UnsafeUnpin for SourceRustPath
impl UnwindSafe for SourceRustPath
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.