pub struct ExecCtx<'a> { /* private fields */ }Expand description
Execution context: database sources, rules, and counters.
Implementations§
Source§impl<'a> ExecCtx<'a>
impl<'a> ExecCtx<'a>
Sourcepub fn new(dbs: BTreeMap<String, &'a Db>, rule_defs: Vec<RuleDef>) -> Self
pub fn new(dbs: BTreeMap<String, &'a Db>, rule_defs: Vec<RuleDef>) -> Self
Creates a context over named database sources and rule definitions.
Sourcepub fn set_extern_call(&mut self, extern_call: ExternCall)
pub fn set_extern_call(&mut self, extern_call: ExternCall)
Installs the resolver consulted for non-native call clause names.
Sourcepub fn default_db(&self) -> Option<&'a Db>
pub fn default_db(&self) -> Option<&'a Db>
The default database source, if bound.
Auto Trait Implementations§
impl<'a> !Freeze for ExecCtx<'a>
impl<'a> !RefUnwindSafe for ExecCtx<'a>
impl<'a> !Sync for ExecCtx<'a>
impl<'a> !UnwindSafe for ExecCtx<'a>
impl<'a> Send for ExecCtx<'a>
impl<'a> Unpin for ExecCtx<'a>
impl<'a> UnsafeUnpin for ExecCtx<'a>
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