pub struct HeadAtomPath { /* private fields */ }Expand description
Path from a rule head to one atom: the disjunct, then the atom inside that disjunct’s conjunction. An atomic head is disjunct 0, atom 0.
Implementations§
Source§impl HeadAtomPath
impl HeadAtomPath
Sourcepub const fn new(disjunct: HeadDisjunctIndex, atom: HeadAtomIndex) -> Self
pub const fn new(disjunct: HeadDisjunctIndex, atom: HeadAtomIndex) -> Self
Atom atom of head disjunct disjunct.
Sourcepub const fn disjunct(self) -> HeadDisjunctIndex
pub const fn disjunct(self) -> HeadDisjunctIndex
The disjunct holding the atom.
Sourcepub const fn atom(self) -> HeadAtomIndex
pub const fn atom(self) -> HeadAtomIndex
The atom’s position inside its disjunct.
Trait Implementations§
Source§impl Clone for HeadAtomPath
impl Clone for HeadAtomPath
impl Copy for HeadAtomPath
Source§impl Debug for HeadAtomPath
impl Debug for HeadAtomPath
Source§impl<'de> Deserialize<'de> for HeadAtomPath
impl<'de> Deserialize<'de> for HeadAtomPath
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 HeadAtomPath
impl Display for HeadAtomPath
impl Eq for HeadAtomPath
Source§impl Hash for HeadAtomPath
impl Hash for HeadAtomPath
Source§impl Ord for HeadAtomPath
impl Ord for HeadAtomPath
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 HeadAtomPath
impl PartialEq for HeadAtomPath
Source§impl PartialOrd for HeadAtomPath
impl PartialOrd for HeadAtomPath
Source§impl Serialize for HeadAtomPath
impl Serialize for HeadAtomPath
impl StructuralPartialEq for HeadAtomPath
Auto Trait Implementations§
impl Forget for HeadAtomPath
impl Freeze for HeadAtomPath
impl Move for HeadAtomPath
impl RefUnwindSafe for HeadAtomPath
impl Send for HeadAtomPath
impl Sync for HeadAtomPath
impl Unpin for HeadAtomPath
impl UnsafeUnpin for HeadAtomPath
impl UnwindSafe for HeadAtomPath
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