pub struct ThrownError {
pub term: Term,
pub uncatchable: bool,
}Expand description
A thrown error as it flows through the solver. The term is what catch/3
pattern-matches against; the uncatchable flag is set for safety-ceiling
errors (step limit) so user catch/3 clauses cannot trap them.
Fields§
§term: Term§uncatchable: boolImplementations§
Source§impl ThrownError
impl ThrownError
Sourcepub fn from_prolog(err: PrologError, interner: &mut StringInterner) -> Self
pub fn from_prolog(err: PrologError, interner: &mut StringInterner) -> Self
Build from a structured PrologError — uncatchable is derived from
the variant.
Trait Implementations§
Source§impl Clone for ThrownError
impl Clone for ThrownError
Source§fn clone(&self) -> ThrownError
fn clone(&self) -> ThrownError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ThrownError
impl RefUnwindSafe for ThrownError
impl Send for ThrownError
impl Sync for ThrownError
impl Unpin for ThrownError
impl UnsafeUnpin for ThrownError
impl UnwindSafe for ThrownError
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