[−][src]Struct polar_core::kb::KnowledgeBase
Fields
constants: Bindingsrules: HashMap<Symbol, GenericRule>sources: Sourcesinline_queries: Vec<Term>Implementations
impl KnowledgeBase[src]
pub fn new() -> Self[src]
pub fn new_id(&self) -> u64[src]
Return a monotonically increasing integer ID.
Wraps around at 52 bits of precision so that it can be safely coerced to an IEEE-754 double-float (f64).
pub fn id_counter(&self) -> Counter[src]
pub fn gensym(&self, prefix: &str) -> Symbol[src]
Generate a new symbol.
pub fn constant(&mut self, name: Symbol, value: Term)[src]
Define a constant variable.
pub fn is_constant(&self, name: &Symbol) -> bool[src]
Return true if a constant with the given name has been defined.
Trait Implementations
impl Default for KnowledgeBase[src]
fn default() -> KnowledgeBase[src]
Auto Trait Implementations
impl RefUnwindSafe for KnowledgeBase
impl Send for KnowledgeBase
impl Sync for KnowledgeBase
impl Unpin for KnowledgeBase
impl UnwindSafe for KnowledgeBase
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,