pub struct RulePath {
pub segments: Vec<PathSegment>,
pub rule: String,
}Expand description
Resolved path to a rule (created during planning from a rule reference).
Represents a fully resolved path through specs to reach a rule.
Fields§
§segments: Vec<PathSegment>Path segments (each is a cross-spec step)
rule: StringFinal rule name
Implementations§
Source§impl RulePath
impl RulePath
Sourcepub fn new(segments: Vec<PathSegment>, rule: String) -> Self
pub fn new(segments: Vec<PathSegment>, rule: String) -> Self
Create a rule path from segments and rule name.
Sourcepub fn input_key(&self) -> String
pub fn input_key(&self) -> String
Dot-separated key for Show/run (alias.rule), twin of DataPath::input_key.
Same string as [Display]: alias hops only, no repository or spec names.
Trait Implementations§
impl Eq for RulePath
Source§impl Ord for RulePath
impl Ord for RulePath
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 PartialOrd for RulePath
impl PartialOrd for RulePath
impl StructuralPartialEq for RulePath
Auto Trait Implementations§
impl Forget for RulePath
impl Freeze for RulePath
impl Move for RulePath
impl RefUnwindSafe for RulePath
impl Send for RulePath
impl Sync for RulePath
impl Unpin for RulePath
impl UnsafeUnpin for RulePath
impl UnwindSafe for RulePath
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.