pub enum PrologType {
Show 16 variants
Integer,
Float,
Atom,
PrologString,
List(Box<PrologType>),
Compound,
Callable,
Term,
Boolean,
Var,
Nonvar,
Number,
Atomic,
PositiveInteger,
NonNeg,
Custom(String),
}Expand description
Prolog type descriptor for plDoc-style type checking.
Variants§
Integer
integer
Float
float
Atom
atom
PrologString
string
List(Box<PrologType>)
is_list(T)
Compound
compound
Callable
callable
Term
term
Boolean
boolean (true/false atom)
Var
var
Nonvar
nonvar
Number
number
Atomic
atomic
PositiveInteger
positive_integer
NonNeg
nonneg
Custom(String)
Custom type name.
Trait Implementations§
Source§impl Clone for PrologType
impl Clone for PrologType
Source§fn clone(&self) -> PrologType
fn clone(&self) -> PrologType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PrologType
impl Debug for PrologType
Source§impl Display for PrologType
impl Display for PrologType
Source§impl PartialEq for PrologType
impl PartialEq for PrologType
impl StructuralPartialEq for PrologType
Auto Trait Implementations§
impl Freeze for PrologType
impl RefUnwindSafe for PrologType
impl Send for PrologType
impl Sync for PrologType
impl Unpin for PrologType
impl UnsafeUnpin for PrologType
impl UnwindSafe for PrologType
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