pub enum HeapError {
OutOfMemory,
DuplicateKey,
PrototypeCycle,
}Variants§
OutOfMemory
The heap cap would be crossed even after a collection. The caller turns
it into the JavaScript InternalError.
DuplicateKey
add_property on a key the object already has.
PrototypeCycle
set_prototype would create a cycle.
Trait Implementations§
impl Copy for HeapError
impl Eq for HeapError
Source§impl Error for HeapError
impl Error for HeapError
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()
impl StructuralPartialEq for HeapError
Auto Trait Implementations§
impl Freeze for HeapError
impl RefUnwindSafe for HeapError
impl Send for HeapError
impl Sync for HeapError
impl Unpin for HeapError
impl UnsafeUnpin for HeapError
impl UnwindSafe for HeapError
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