pub struct ScratchExhausted;Expand description
The error of a Scratch operation whose worst-case result does not fit
in the free part of the arena.
§Examples
use implicit_predicates_core::{Scratch, ScratchExhausted};
let mut buf = [0.0; 1];
let mut scratch = Scratch::borrowed(&mut buf);
assert_eq!(scratch.push(&[1e-20, 1.0]), Err(ScratchExhausted));
assert_eq!(ScratchExhausted.to_string(), "scratch arena exhausted");Trait Implementations§
Source§impl Clone for ScratchExhausted
impl Clone for ScratchExhausted
impl Copy for ScratchExhausted
Source§impl Debug for ScratchExhausted
impl Debug for ScratchExhausted
Source§impl Display for ScratchExhausted
impl Display for ScratchExhausted
impl Eq for ScratchExhausted
Source§impl Error for ScratchExhausted
impl Error for ScratchExhausted
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 PartialEq for ScratchExhausted
impl PartialEq for ScratchExhausted
impl StructuralPartialEq for ScratchExhausted
Auto Trait Implementations§
impl Forget for ScratchExhausted
impl Freeze for ScratchExhausted
impl Move for ScratchExhausted
impl RefUnwindSafe for ScratchExhausted
impl Send for ScratchExhausted
impl Sync for ScratchExhausted
impl Unpin for ScratchExhausted
impl UnsafeUnpin for ScratchExhausted
impl UnwindSafe for ScratchExhausted
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