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
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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