Basic docs and non_exhaustive for PrologTerm

This commit is contained in:
bakaq
2024-09-29 22:12:29 -03:00
parent 658e39aae6
commit 71dec62ce2

View File

@@ -11,6 +11,7 @@ use std::collections::BTreeMap;
use super::Machine;
use super::{HeapCellValue, Number};
/// Represents a leaf answer from a query.
#[derive(Debug, Clone, PartialEq, Eq)]
pub enum LeafAnswer {
True,
@@ -22,6 +23,8 @@ pub enum LeafAnswer {
},
}
/// Represents a Prolog term.
#[non_exhaustive]
#[derive(Debug, Clone, PartialEq, Eq)]
pub enum PrologTerm {
Integer(Integer),