pub enum PatternVar {
Head(u8),
Join(u8),
}Expand description
A variable slot inside a body-atom binding pattern.
Variants§
Head(u8)
Bound to head argument position i (0-based, < head_arity).
Join(u8)
Bound to existential join variable j (0-based). Join variables are
canonical: j is dense in first-appearance order across the body.
Trait Implementations§
Source§impl Clone for PatternVar
impl Clone for PatternVar
Source§fn clone(&self) -> PatternVar
fn clone(&self) -> PatternVar
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PatternVar
Source§impl Debug for PatternVar
impl Debug for PatternVar
impl Eq for PatternVar
Source§impl Hash for PatternVar
impl Hash for PatternVar
Source§impl Ord for PatternVar
impl Ord for PatternVar
Source§fn cmp(&self, other: &PatternVar) -> Ordering
fn cmp(&self, other: &PatternVar) -> Ordering
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
Source§impl PartialEq for PatternVar
impl PartialEq for PatternVar
Source§fn eq(&self, other: &PatternVar) -> bool
fn eq(&self, other: &PatternVar) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for PatternVar
impl PartialOrd for PatternVar
impl StructuralPartialEq for PatternVar
Auto Trait Implementations§
impl Freeze for PatternVar
impl RefUnwindSafe for PatternVar
impl Send for PatternVar
impl Sync for PatternVar
impl Unpin for PatternVar
impl UnsafeUnpin for PatternVar
impl UnwindSafe for PatternVar
Blanket Implementations§
impl<T> Allocation for T
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more