pub struct PathSegment {
pub uses: Arc<str>,
pub row: Option<usize>,
pub repository: Option<Arc<str>>,
pub spec: Arc<str>,
}Expand description
A single segment in a resolved path traversal
Used in both DataPath and RulePath for cross-spec traversal. Each segment is
one spec instance of the consumer plan: a uses import (uses, row: None)
or row row of the instance list uses written in the spec (row: Some(n),
1-based). repository is the resolved target repository name (None = unnamed
workspace) and spec the resolved target spec name.
Fields§
§uses: Arc<str>The uses alias, or the instance list name when row is set.
row: Option<usize>Row number (1-based) of list uses when this hop is a row written in the spec.
repository: Option<Arc<str>>Target repository name from Arc<LemmaRepository>.name at resolve.
None is the unnamed workspace.
spec: Arc<str>The spec this hop resolves to (resolved during planning)
Implementations§
Trait Implementations§
Source§impl Clone for PathSegment
impl Clone for PathSegment
Source§impl Debug for PathSegment
impl Debug for PathSegment
Source§impl Display for PathSegment
impl Display for PathSegment
impl Eq for PathSegment
Source§impl From<&PathSegment> for PathSegment
impl From<&PathSegment> for PathSegment
Source§fn from(segment: &DomainPathSegment) -> Self
fn from(segment: &DomainPathSegment) -> Self
Converts to this type from the input type.
Source§impl Hash for PathSegment
impl Hash for PathSegment
Source§impl Ord for PathSegment
impl Ord for PathSegment
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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for PathSegment
impl PartialEq for PathSegment
Source§impl PartialOrd for PathSegment
impl PartialOrd for PathSegment
impl StructuralPartialEq for PathSegment
Auto Trait Implementations§
impl Forget for PathSegment
impl Freeze for PathSegment
impl RefUnwindSafe for PathSegment
impl Send for PathSegment
impl Sync for PathSegment
impl Unpin for PathSegment
impl UnsafeUnpin for PathSegment
impl UnwindSafe for PathSegment
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,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.