Struct cairo_lang_sierra_gas::objects::ConstCost
source · pub struct ConstCost {
pub steps: i32,
pub holes: i32,
pub range_checks: i32,
}
Expand description
Represents constant cost.
Fields§
§steps: i32
§holes: i32
§range_checks: i32
Implementations§
Trait Implementations§
source§impl From<ConstCost> for BranchCost
impl From<ConstCost> for BranchCost
Converts ConstCost into BranchCost.
source§impl PartialEq for ConstCost
impl PartialEq for ConstCost
impl Eq for ConstCost
impl StructuralEq for ConstCost
impl StructuralPartialEq for ConstCost
Auto Trait Implementations§
impl RefUnwindSafe for ConstCost
impl Send for ConstCost
impl Sync for ConstCost
impl Unpin for ConstCost
impl UnwindSafe for ConstCost
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.