pub struct LiteralPath(/* private fields */);Expand description
Path from a rule body to one literal: the outer body position, then one inner-body position per enclosing aggregate.
Implementations§
Source§impl LiteralPath
impl LiteralPath
Sourcepub fn top(index: LiteralIndex) -> Self
pub fn top(index: LiteralIndex) -> Self
Path to a literal directly in the rule body.
Sourcepub fn inner(&self, index: LiteralIndex) -> Self
pub fn inner(&self, index: LiteralIndex) -> Self
Path to a literal inside the aggregate this path points to.
Sourcepub fn steps(&self) -> &[LiteralIndex]
pub fn steps(&self) -> &[LiteralIndex]
Outer body position followed by each inner-body position.
Sourcepub fn outer(&self) -> LiteralIndex
pub fn outer(&self) -> LiteralIndex
Position in the rule body of the outermost literal.
Trait Implementations§
Source§impl Clone for LiteralPath
impl Clone for LiteralPath
Source§impl Debug for LiteralPath
impl Debug for LiteralPath
Source§impl<'de> Deserialize<'de> for LiteralPath
impl<'de> Deserialize<'de> for LiteralPath
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for LiteralPath
impl Display for LiteralPath
impl Eq for LiteralPath
Source§impl Hash for LiteralPath
impl Hash for LiteralPath
Source§impl Ord for LiteralPath
impl Ord for LiteralPath
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 LiteralPath
impl PartialEq for LiteralPath
Source§impl PartialOrd for LiteralPath
impl PartialOrd for LiteralPath
Source§impl Serialize for LiteralPath
impl Serialize for LiteralPath
impl StructuralPartialEq for LiteralPath
Auto Trait Implementations§
impl Forget for LiteralPath
impl Freeze for LiteralPath
impl Move for LiteralPath
impl RefUnwindSafe for LiteralPath
impl Send for LiteralPath
impl Sync for LiteralPath
impl Unpin for LiteralPath
impl UnsafeUnpin for LiteralPath
impl UnwindSafe for LiteralPath
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