pub struct ReifiedVar(pub usize);Expand description
Reified logic variable.
Reified variables represent logic variables that remain fresh after goals have run.
Tuple Fields§
§0: usizeTrait Implementations§
Source§impl Clone for ReifiedVar
impl Clone for ReifiedVar
Source§fn clone(&self) -> ReifiedVar
fn clone(&self) -> ReifiedVar
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ReifiedVar
impl Debug for ReifiedVar
Source§impl PartialEq for ReifiedVar
impl PartialEq for ReifiedVar
Source§impl Structure for ReifiedVar
impl Structure for ReifiedVar
Source§fn occurs<'s>(&self, _x: &Var, _s: &Substitution<'s>) -> bool
fn occurs<'s>(&self, _x: &Var, _s: &Substitution<'s>) -> bool
Returns
true if self contains a variable that is equivalent
to x when considering substitution s.Source§fn unify<'s>(
&self,
_v: &Value,
_s: Substitution<'s>,
) -> Option<Substitution<'s>>
fn unify<'s>( &self, _v: &Value, _s: Substitution<'s>, ) -> Option<Substitution<'s>>
Attempt to unify
self with Value v under substitution s.Source§fn walk_star(self: Arc<Self>, _: &Substitution<'_>) -> Value
fn walk_star(self: Arc<Self>, _: &Substitution<'_>) -> Value
Recursively replace any variables contained in
self with
their substituted values.Source§fn reify_s<'s>(&self, s: Substitution<'s>) -> Substitution<'s>
fn reify_s<'s>(&self, s: Substitution<'s>) -> Substitution<'s>
Substitute all variables that remain fresh in
self with reified variables.impl Copy for ReifiedVar
impl Eq for ReifiedVar
impl StructuralPartialEq for ReifiedVar
Auto Trait Implementations§
impl Freeze for ReifiedVar
impl RefUnwindSafe for ReifiedVar
impl Send for ReifiedVar
impl Sync for ReifiedVar
impl Unpin for ReifiedVar
impl UnsafeUnpin for ReifiedVar
impl UnwindSafe for ReifiedVar
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