pub enum PrologDirective {
Module(String, Vec<String>),
UseModuleLibrary(String),
UseModulePath(String),
UseModuleImports(String, Vec<String>),
Dynamic(String, usize),
Discontiguous(String, usize),
EnsureLoaded(String),
ModuleInfo,
SetPrologFlag(String, String),
Op(u16, String, String),
MetaPredicate(PrologTerm),
Arbitrary(PrologTerm),
}Expand description
A top-level Prolog directive :- Goal.
Variants§
Module(String, Vec<String>)
:- module(Name, [Exports]).
UseModuleLibrary(String)
:- use_module(library(Name)).
UseModulePath(String)
:- use_module(path).
UseModuleImports(String, Vec<String>)
:- use_module(path, [Imports]).
Dynamic(String, usize)
:- dynamic Name/Arity.
Discontiguous(String, usize)
:- discontiguous Name/Arity.
EnsureLoaded(String)
:- ensure_loaded(path).
ModuleInfo
:- module_info.
SetPrologFlag(String, String)
:- set_prolog_flag(Flag, Value).
Op(u16, String, String)
:- op(Priority, Type, Operator).
MetaPredicate(PrologTerm)
:- meta_predicate Declaration.
Arbitrary(PrologTerm)
An arbitrary directive goal.
Implementations§
Trait Implementations§
Source§impl Clone for PrologDirective
impl Clone for PrologDirective
Source§fn clone(&self) -> PrologDirective
fn clone(&self) -> PrologDirective
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 PrologDirective
impl Debug for PrologDirective
Source§impl PartialEq for PrologDirective
impl PartialEq for PrologDirective
impl StructuralPartialEq for PrologDirective
Auto Trait Implementations§
impl Freeze for PrologDirective
impl RefUnwindSafe for PrologDirective
impl Send for PrologDirective
impl Sync for PrologDirective
impl Unpin for PrologDirective
impl UnsafeUnpin for PrologDirective
impl UnwindSafe for PrologDirective
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