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.

Load Sources into the KB.

Clear rules from the knowledge base

Register MRO for name with mro.

Params:

  • mro: Should go from name, name’s next superclass, name's furthest away superclass. mro` is a list of class ids.

Trait Implementations

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.