pub struct Edb { /* private fields */ }Expand description
The extensional database: the set of base (input) facts.
Implementations§
Source§impl Edb
impl Edb
Sourcepub fn get_relation(&self, predicate: &str) -> Option<&Relation>
pub fn get_relation(&self, predicate: &str) -> Option<&Relation>
Retrieve the relation for a predicate, if any.
Sourcepub fn relation_names(&self) -> Vec<String>
pub fn relation_names(&self) -> Vec<String>
List the names of all predicates in the EDB.
Sourcepub fn total_facts(&self) -> usize
pub fn total_facts(&self) -> usize
Total number of base facts across all predicates.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Edb
impl RefUnwindSafe for Edb
impl Send for Edb
impl Sync for Edb
impl Unpin for Edb
impl UnsafeUnpin for Edb
impl UnwindSafe for Edb
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