pub enum ErrorCode {
Success,
Runtime,
Logic,
BadAlloc,
Unknown,
FFIError,
}Expand description
Enumeration of clingo error codes for ClingoError::InternalError.
Variants§
Success
Successful API calls
Runtime
Errors only detectable at runtime like invalid input
Logic
Wrong usage of the clingo API
BadAlloc
Memory could not be allocated
Unknown
Errors unrelated to clingo
FFIError
FFI failed to match clingo_error
Trait Implementations§
impl Copy for ErrorCode
Auto Trait Implementations§
impl Freeze for ErrorCode
impl RefUnwindSafe for ErrorCode
impl Send for ErrorCode
impl Sync for ErrorCode
impl Unpin for ErrorCode
impl UnwindSafe for ErrorCode
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