Struct swipl::engine::EngineActivation
source · pub struct EngineActivation<'a> { /* private fields */ }
Expand description
A prolog engine activation.
When activating a prolog engine, this object is returned. The object is guaranteed to not outlive the engine it was created from. Furthermore, any one engine can have at most one activation in existence at any time, and each thread can have at most one engine activated on it.
EngineActivation does not implement Send or Sync. This means it’s only allowed to be used from the thread that originally created it.
Implementations§
source§impl<'a> EngineActivation<'a>
impl<'a> EngineActivation<'a>
sourcepub fn engine_ptr(&self) -> PL_engine_t
pub fn engine_ptr(&self) -> PL_engine_t
Returns the engine pointer of the engine associated with this activation.
Trait Implementations§
source§impl<'a> Debug for EngineActivation<'a>
impl<'a> Debug for EngineActivation<'a>
source§impl<'a> Drop for EngineActivation<'a>
impl<'a> Drop for EngineActivation<'a>
source§impl<'a> From<EngineActivation<'a>> for Context<'a, ActivatedEngine<'a>>
impl<'a> From<EngineActivation<'a>> for Context<'a, ActivatedEngine<'a>>
source§fn from(activation: EngineActivation<'a>) -> Context<'a, ActivatedEngine<'a>>
fn from(activation: EngineActivation<'a>) -> Context<'a, ActivatedEngine<'a>>
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a> RefUnwindSafe for EngineActivation<'a>
impl<'a> !Send for EngineActivation<'a>
impl<'a> !Sync for EngineActivation<'a>
impl<'a> Unpin for EngineActivation<'a>
impl<'a> UnwindSafe for EngineActivation<'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