pub enum ArenaError {
OutOfMemory,
InvalidIndex,
TraceError,
}Expand description
Errors that can occur during arena operations.
Variants§
OutOfMemory
Arena is full, cannot allocate more cells.
InvalidIndex
Invalid index (out of bounds or not allocated).
TraceError
An error occurred during garbage collection tracing. This can happen if the mark stack overflows or roots are invalid.
Implementations§
Source§impl ArenaError
impl ArenaError
Sourcepub const fn is_out_of_memory(&self) -> bool
pub const fn is_out_of_memory(&self) -> bool
Check if this error indicates the arena is full.
Sourcepub const fn is_invalid_index(&self) -> bool
pub const fn is_invalid_index(&self) -> bool
Check if this error indicates an invalid index.
Sourcepub const fn is_trace_error(&self) -> bool
pub const fn is_trace_error(&self) -> bool
Check if this error is related to garbage collection.
Trait Implementations§
Source§impl Clone for ArenaError
impl Clone for ArenaError
Source§fn clone(&self) -> ArenaError
fn clone(&self) -> ArenaError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ArenaError
impl Debug for ArenaError
Source§impl From<ArenaError> for EvalError
impl From<ArenaError> for EvalError
Source§fn from(e: ArenaError) -> Self
fn from(e: ArenaError) -> Self
Converts to this type from the input type.
Source§impl From<ArenaError> for ParseError
impl From<ArenaError> for ParseError
Source§fn from(e: ArenaError) -> ParseError
fn from(e: ArenaError) -> ParseError
Converts to this type from the input type.
Source§impl PartialEq for ArenaError
impl PartialEq for ArenaError
impl Copy for ArenaError
impl Eq for ArenaError
impl StructuralPartialEq for ArenaError
Auto Trait Implementations§
impl Freeze for ArenaError
impl RefUnwindSafe for ArenaError
impl Send for ArenaError
impl Sync for ArenaError
impl Unpin for ArenaError
impl UnwindSafe for ArenaError
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