pub enum OutOfMemory {
TryReserve(TryReserveError),
ExternalApi,
}Expand description
Error returned when an operation ran out of memory
The library is not fully memory safe, meaning there are cases where memory allocation failing can lead to a panic instead to an error. Mainly add clauses to solvers and collecting clauses from encodings are done in a safe way. This is intended, e.g., for anytime solvers that might want a change to print a final output if they run out of memory.
Variants§
TryReserve(TryReserveError)
A try_reserve operation in Rust ran out of memory
ExternalApi
An external API (typically a solver) ran out of memory
Trait Implementations§
Source§impl Debug for OutOfMemory
impl Debug for OutOfMemory
Source§impl Display for OutOfMemory
impl Display for OutOfMemory
Source§impl Error for OutOfMemory
impl Error for OutOfMemory
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<OutOfMemory> for ConstraintEncodingError
impl From<OutOfMemory> for ConstraintEncodingError
Source§fn from(source: OutOfMemory) -> Self
fn from(source: OutOfMemory) -> Self
Converts to this type from the input type.
Source§impl From<OutOfMemory> for ConstraintEncodingError
Available on crate feature proof-logging only.
impl From<OutOfMemory> for ConstraintEncodingError
Available on crate feature
proof-logging only.Source§fn from(source: OutOfMemory) -> Self
fn from(source: OutOfMemory) -> Self
Converts to this type from the input type.
Source§impl From<OutOfMemory> for EncodingError
Available on crate feature proof-logging only.
impl From<OutOfMemory> for EncodingError
Available on crate feature
proof-logging only.Source§fn from(source: OutOfMemory) -> Self
fn from(source: OutOfMemory) -> Self
Converts to this type from the input type.
Source§impl From<TryReserveError> for OutOfMemory
impl From<TryReserveError> for OutOfMemory
Source§fn from(value: TryReserveError) -> Self
fn from(value: TryReserveError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for OutOfMemory
impl PartialEq for OutOfMemory
impl Eq for OutOfMemory
impl StructuralPartialEq for OutOfMemory
Auto Trait Implementations§
impl Freeze for OutOfMemory
impl RefUnwindSafe for OutOfMemory
impl Send for OutOfMemory
impl Sync for OutOfMemory
impl Unpin for OutOfMemory
impl UnwindSafe for OutOfMemory
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more