]> Repositorios git - scryer-prolog.git/commitdiff
Basic docs and non_exhaustive for PrologTerm
authorbakaq <[email protected]>
Mon, 30 Sep 2024 01:12:29 +0000 (22:12 -0300)
committerbakaq <[email protected]>
Sun, 8 Dec 2024 23:18:05 +0000 (20:18 -0300)
src/machine/parsed_results.rs

index 4ab1f91a2228c42be1c43995b8b1797c6d5b55f5..561311cef510ded3226c85a9e6a44f80ac4a8edf 100644 (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),