Enum cairo_lang_sierra_gas::objects::BranchCost
source · pub enum BranchCost {
Regular {
const_cost: ConstCost,
pre_cost: PreCost,
},
FunctionCall {
const_cost: ConstCost,
function: Function,
},
BranchAlign,
WithdrawGas {
const_cost: ConstCost,
success: bool,
with_builtin_costs: bool,
},
RedepositGas,
}
Expand description
The cost of executing a libfunc for a specific output branch.
Variants§
Regular
The cost of the statement is independent on other statements.
FunctionCall
A cost of a function call.
BranchAlign
The cost of the branch_align
libfunc.
WithdrawGas
The cost of withdraw_gas
and withdraw_gas_all
libfuncs.
RedepositGas
The cost of the redeposit_gas
libfunc.
Trait Implementations§
source§impl Clone for BranchCost
impl Clone for BranchCost
source§fn clone(&self) -> BranchCost
fn clone(&self) -> BranchCost
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 moreAuto Trait Implementations§
impl RefUnwindSafe for BranchCost
impl Send for BranchCost
impl Sync for BranchCost
impl Unpin for BranchCost
impl UnwindSafe for BranchCost
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