Struct ethcore_builtin::Builtin
source · [−]pub struct Builtin { /* private fields */ }Expand description
Pricing scheme, execution definition, and activation block for a built-in contract.
Call cost to compute cost for the given input, execute to execute the contract
on the given input, and is_active to determine whether the contract is active.
Implementations
sourceimpl Builtin
impl Builtin
sourcepub fn cost(&self, input: &[u8], at: u64) -> U256
pub fn cost(&self, input: &[u8], at: u64) -> U256
Simple forwarder for cost.
Return the cost of the most recently activated pricer at the current block number.
If no pricer is actived zero is returned
If multiple activation_at has the same block number the last one is used
(follows BTreeMap semantics).
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Builtin
impl Send for Builtin
impl Sync for Builtin
impl Unpin for Builtin
impl UnwindSafe for Builtin
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more