Function swipl::init::initialize_swipl

source ·
pub fn initialize_swipl() -> Option<EngineActivation<'static>>
Expand description

Initialize SWI-Prolog.

This requires a borrow to a MainEngineActivator, whose lifetime will be used to After initializing, the default ‘main’ engine is active on the calling thread. If SWI-Prolog was already initialized, this will do nothing, and None will be returned. Otherwise, An EngineActivation will be returned containing the main prolog engine.