Enum smtlib_lowlevel::ast::Term
source · pub enum Term {
SpecConstant(SpecConstant),
Identifier(QualIdentifier),
Application(QualIdentifier, Vec<Term>),
Let(Vec<VarBinding>, Box<Term>),
Forall(Vec<SortedVar>, Box<Term>),
Exists(Vec<SortedVar>, Box<Term>),
Match(Box<Term>, Vec<MatchCase>),
Annotation(Box<Term>, Vec<Attribute>),
}
Variants§
SpecConstant(SpecConstant)
<spec_constant>
Identifier(QualIdentifier)
<qual_identifier>
Application(QualIdentifier, Vec<Term>)
(<qual_identifier> <term>+)
Let(Vec<VarBinding>, Box<Term>)
(let (<var_binding>+) <term>)
Forall(Vec<SortedVar>, Box<Term>)
(forall (<sorted_var>+) <term>)
Exists(Vec<SortedVar>, Box<Term>)
(exists (<sorted_var>+) <term>)
Match(Box<Term>, Vec<MatchCase>)
(match <term> (<match_case>+))
Annotation(Box<Term>, Vec<Attribute>)
(! <term> <attribute>+)
Implementations§
source§impl Term
impl Term
pub fn all_consts(&self) -> HashSet<&QualIdentifier>
pub fn strip_sort(self) -> Term
Trait Implementations§
source§impl<'de> Deserialize<'de> for Term
impl<'de> Deserialize<'de> for Term
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 PartialEq for Term
impl PartialEq for Term
impl Eq for Term
impl StructuralPartialEq for Term
Auto Trait Implementations§
impl Freeze for Term
impl RefUnwindSafe for Term
impl Send for Term
impl Sync for Term
impl Unpin for Term
impl UnwindSafe for Term
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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more