pub struct OccurrencePath { /* private fields */ }Expand description
Nonempty structural path from a selected root triple to an appearing term.
Implementations§
Source§impl OccurrencePath
impl OccurrencePath
Sourcepub const fn root(position: TermPosition) -> Self
pub const fn root(position: TermPosition) -> Self
A direct term position in the selected root triple.
Sourcepub fn positions(&self) -> impl DoubleEndedIterator<Item = &TermPosition>
pub fn positions(&self) -> impl DoubleEndedIterator<Item = &TermPosition>
Iterate the root position followed by zero or more nested positions.
Trait Implementations§
Source§impl Clone for OccurrencePath
impl Clone for OccurrencePath
Source§impl Debug for OccurrencePath
impl Debug for OccurrencePath
Source§impl<'de> Deserialize<'de> for OccurrencePath
impl<'de> Deserialize<'de> for OccurrencePath
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
impl Eq for OccurrencePath
Source§impl PartialEq for OccurrencePath
impl PartialEq for OccurrencePath
Source§impl Serialize for OccurrencePath
impl Serialize for OccurrencePath
impl StructuralPartialEq for OccurrencePath
Auto Trait Implementations§
impl Forget for OccurrencePath
impl Freeze for OccurrencePath
impl Move for OccurrencePath
impl RefUnwindSafe for OccurrencePath
impl Send for OccurrencePathwhere
RawVecInner: Send,
impl Sync for OccurrencePathwhere
RawVecInner: Sync,
impl Unpin for OccurrencePath
impl UnsafeUnpin for OccurrencePath
impl UnwindSafe for OccurrencePathwhere
RawVecInner: UnwindSafe,
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