Enum cairo_vm::vm::errors::memory_errors::MemoryError
source · pub enum MemoryError {
Show 29 variants
UnallocatedSegment(usize, usize),
AddressNotRelocatable,
NumOutOfBounds,
FoundNonInt,
InconsistentMemory(MaybeRelocatable, MaybeRelocatable, MaybeRelocatable),
EffectiveSizesNotCalled,
Relocation,
WriteArg,
AddressInTemporarySegment(isize),
AddressNotInTemporarySegment(isize),
TemporarySegmentInRelocation(isize),
NonZeroOffset(usize),
DuplicatedRelocation(isize),
MissingAccessedAddresses,
MissingSegmentUsedSizes,
SegmentNotFinalized(usize),
InvalidMemoryValue(Relocatable, MaybeRelocatable),
GetRangeMemoryGap,
ErrorCalculatingMemoryUnits,
InsufficientAllocatedCells,
MissingMemoryCells(&'static str),
MissingMemoryCellsWithOffsets(&'static str, Vec<usize>),
InitializingVerifyingKey(Vec<u8>),
InvalidSignature,
SignatureNotFound,
ErrorParsingPubKey(String),
ErrorRetrievingMessage(String),
ErrorVerifyingSignature,
CantGetMutAccessedOffset,
}Variants§
UnallocatedSegment(usize, usize)
AddressNotRelocatable
NumOutOfBounds
FoundNonInt
InconsistentMemory(MaybeRelocatable, MaybeRelocatable, MaybeRelocatable)
EffectiveSizesNotCalled
Relocation
WriteArg
AddressInTemporarySegment(isize)
AddressNotInTemporarySegment(isize)
TemporarySegmentInRelocation(isize)
NonZeroOffset(usize)
DuplicatedRelocation(isize)
MissingAccessedAddresses
MissingSegmentUsedSizes
SegmentNotFinalized(usize)
InvalidMemoryValue(Relocatable, MaybeRelocatable)
GetRangeMemoryGap
ErrorCalculatingMemoryUnits
InsufficientAllocatedCells
MissingMemoryCells(&'static str)
MissingMemoryCellsWithOffsets(&'static str, Vec<usize>)
InitializingVerifyingKey(Vec<u8>)
InvalidSignature
SignatureNotFound
ErrorParsingPubKey(String)
ErrorRetrievingMessage(String)
ErrorVerifyingSignature
CantGetMutAccessedOffset
Trait Implementations§
source§impl Debug for MemoryError
impl Debug for MemoryError
source§impl Display for MemoryError
impl Display for MemoryError
source§impl Error for MemoryError
impl Error for MemoryError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<MemoryError> for CairoRunError
impl From<MemoryError> for CairoRunError
source§fn from(source: MemoryError) -> Self
fn from(source: MemoryError) -> Self
Converts to this type from the input type.
source§impl From<MemoryError> for RunnerError
impl From<MemoryError> for RunnerError
source§fn from(source: MemoryError) -> Self
fn from(source: MemoryError) -> Self
Converts to this type from the input type.
source§impl From<MemoryError> for TraceError
impl From<MemoryError> for TraceError
source§fn from(source: MemoryError) -> Self
fn from(source: MemoryError) -> Self
Converts to this type from the input type.
source§impl From<MemoryError> for VirtualMachineError
impl From<MemoryError> for VirtualMachineError
source§fn from(source: MemoryError) -> Self
fn from(source: MemoryError) -> Self
Converts to this type from the input type.
source§impl PartialEq<MemoryError> for MemoryError
impl PartialEq<MemoryError> for MemoryError
source§fn eq(&self, other: &MemoryError) -> bool
fn eq(&self, other: &MemoryError) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for MemoryError
impl StructuralEq for MemoryError
impl StructuralPartialEq for MemoryError
Auto Trait Implementations§
impl RefUnwindSafe for MemoryError
impl Send for MemoryError
impl Sync for MemoryError
impl Unpin for MemoryError
impl UnwindSafe for MemoryError
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.