pub struct ProgramDirectives {
pub dynamic: Vec<(AtomId, usize)>,
}Expand description
Directives extracted from a program (:- dynamic(f/1). etc).
Currently only dynamic/1 is recognized. Future directives (e.g.
multifile, discontiguous) extend this struct.
Fields§
§dynamic: Vec<(AtomId, usize)>(functor, arity) pairs declared :- dynamic(F/A)..
A goal referencing a predicate in this set fails silently when no
clauses match, instead of throwing existence_error.
Trait Implementations§
Source§impl Clone for ProgramDirectives
impl Clone for ProgramDirectives
Source§fn clone(&self) -> ProgramDirectives
fn clone(&self) -> ProgramDirectives
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ProgramDirectives
impl Debug for ProgramDirectives
Source§impl Default for ProgramDirectives
impl Default for ProgramDirectives
Source§fn default() -> ProgramDirectives
fn default() -> ProgramDirectives
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ProgramDirectives
impl RefUnwindSafe for ProgramDirectives
impl Send for ProgramDirectives
impl Sync for ProgramDirectives
impl Unpin for ProgramDirectives
impl UnsafeUnpin for ProgramDirectives
impl UnwindSafe for ProgramDirectives
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