Add useful derive statements

This commit is contained in:
Patrick Lühne 2020-01-31 13:52:57 +01:00
parent 6b10cced7c
commit 03e249e791
Signed by: patrick
GPG Key ID: 05F3611E97A70ABF
1 changed files with 2 additions and 0 deletions

View File

@ -28,12 +28,14 @@ pub enum UnaryOperator
// Primitives
#[derive(Eq, Hash, PartialEq)]
pub struct FunctionDeclaration
{
pub name: String,
pub arity: usize,
}
#[derive(Eq, Hash, PartialEq)]
pub struct PredicateDeclaration
{
pub name: String,