Enum gear_core::memory::AllocError
source · pub enum AllocError {
IncorrectAllocationData(IncorrectAllocationDataError),
ProgramAllocOutOfBounds,
InvalidFree(u32),
GasCharge(ChargeError),
}Expand description
Allocation error
Variants§
IncorrectAllocationData(IncorrectAllocationDataError)
Incorrect allocation data error
ProgramAllocOutOfBounds
The error occurs when a program tries to allocate more memory than allowed.
InvalidFree(u32)
The error occurs in attempt to free-up a memory page from static area or outside additionally allocated for this program.
GasCharge(ChargeError)
Gas charge error
Trait Implementations§
source§impl Clone for AllocError
impl Clone for AllocError
source§fn clone(&self) -> AllocError
fn clone(&self) -> AllocError
Returns a copy 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 AllocError
impl Debug for AllocError
source§impl Display for AllocError
impl Display for AllocError
source§impl From<ChargeError> for AllocError
impl From<ChargeError> for AllocError
source§fn from(original: ChargeError) -> AllocError
fn from(original: ChargeError) -> AllocError
Converts to this type from the input type.
source§impl From<IncorrectAllocationDataError> for AllocError
impl From<IncorrectAllocationDataError> for AllocError
source§fn from(original: IncorrectAllocationDataError) -> AllocError
fn from(original: IncorrectAllocationDataError) -> AllocError
Converts to this type from the input type.
source§impl PartialEq<AllocError> for AllocError
impl PartialEq<AllocError> for AllocError
source§fn eq(&self, other: &AllocError) -> bool
fn eq(&self, other: &AllocError) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for AllocError
impl StructuralEq for AllocError
impl StructuralPartialEq for AllocError
Auto Trait Implementations§
impl RefUnwindSafe for AllocError
impl Send for AllocError
impl Sync for AllocError
impl Unpin for AllocError
impl UnwindSafe for AllocError
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