Enum cairo_lang_sierra_gas::CostError
source · pub enum CostError {
ProgramRegistryError(Box<ProgramRegistryError>),
StatementOutOfBounds(StatementIdx),
SolvingGasEquationFailed,
}
Expand description
Error occurring while calculating the costing of a program’s variables.
Variants§
ProgramRegistryError(Box<ProgramRegistryError>)
StatementOutOfBounds(StatementIdx)
SolvingGasEquationFailed
Trait Implementations§
source§impl Error for CostError
impl Error for CostError
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<Box<ProgramRegistryError>> for CostError
impl From<Box<ProgramRegistryError>> for CostError
source§fn from(source: Box<ProgramRegistryError>) -> Self
fn from(source: Box<ProgramRegistryError>) -> Self
Converts to this type from the input type.
source§impl PartialEq for CostError
impl PartialEq for CostError
impl Eq for CostError
impl StructuralEq for CostError
impl StructuralPartialEq for CostError
Auto Trait Implementations§
impl RefUnwindSafe for CostError
impl Send for CostError
impl Sync for CostError
impl Unpin for CostError
impl UnwindSafe for CostError
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
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.§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,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§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,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.