Struct polar_core::polar::Polar [−][src]
pub struct Polar {
pub kb: Arc<RwLock<KnowledgeBase>>,
// some fields omitted
}
Fields
kb: Arc<RwLock<KnowledgeBase>>
Implementations
Load sources
into the KB, returning compile-time diagnostics accumulated during the load.
Clear rules from the knowledge base
pub fn new_query_from_term(&self, term: Term, trace: bool) -> QueryⓘNotable traits for Queryimpl Iterator for Query type Item = PolarResult<QueryEvent>;
Notable traits for Query
impl Iterator for Query type Item = PolarResult<QueryEvent>;
Register MRO for name
with mro
.
Params:
mro
: Should go fromname
,name
’s next superclass,name's furthest away superclass.
mro` is a list of class ids.