Struct clingo::SymbolicAtoms
[−]
[src]
pub struct SymbolicAtoms(_);
Container that stores symbolic atoms in a program -- the relevant Herbrand base gringo uses to instantiate programs.
Methods
impl SymbolicAtoms
[src]
pub fn size(&self) -> Option<usize>
[src]
Get the number of different atoms occurring in a logic program.
ⓘImportant traits for SymbolicAtomsIterator<'a>pub fn iter(&self) -> SymbolicAtomsIterator
[src]
ⓘImportant traits for SymbolicAtomsIterator<'a>
Get a forward iterator of the sequence of all symbolic atoms.
ⓘImportant traits for SymbolicAtomsIterator<'a>pub fn iter_with_signature(&self, sig: &Signature) -> SymbolicAtomsIterator
[src]
ⓘImportant traits for SymbolicAtomsIterator<'a>
Get a forward iterator of the sequence of all symbolic atoms restricted to a given signature.
Arguments
signature
- the signature
pub fn signatures(&self) -> Result<Vec<Signature>, ClingoError>
[src]
Get the predicate signatures occurring in a logic program.
Errors
ErrorType::BadAlloc
ErrorType::Runtime
if the size is too small
Trait Implementations
impl Debug for SymbolicAtoms
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Copy for SymbolicAtoms
[src]
impl Clone for SymbolicAtoms
[src]
fn clone(&self) -> SymbolicAtoms
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more