pub enum Var {
Free(String),
Bound(usize),
}Expand description
Represents a variable in the logical formula.
Variables can either be freely named (Free) or bound to a De Bruijn index (Bound).
Variants§
Free(String)
A free variable represented by its name.
Bound(usize)
A bound variable represented by its De Bruijn index.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Var
impl<'de> Deserialize<'de> for Var
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 Var
impl StructuralPartialEq for Var
Auto Trait Implementations§
impl Freeze for Var
impl RefUnwindSafe for Var
impl Send for Var
impl Sync for Var
impl Unpin for Var
impl UnsafeUnpin for Var
impl UnwindSafe for Var
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