Struct clarity_repl::clarity::costs::LimitedCostTracker [−][src]
Implementations
impl LimitedCostTracker
[src]
pub fn new(
mainnet: bool,
limit: ExecutionCost,
clarity_db: &mut ClarityDatabase<'_>
) -> Result<LimitedCostTracker, CostErrors>
[src]
mainnet: bool,
limit: ExecutionCost,
clarity_db: &mut ClarityDatabase<'_>
) -> Result<LimitedCostTracker, CostErrors>
pub fn new_mid_block(
mainnet: bool,
limit: ExecutionCost,
clarity_db: &mut ClarityDatabase<'_>
) -> Result<LimitedCostTracker, CostErrors>
[src]
mainnet: bool,
limit: ExecutionCost,
clarity_db: &mut ClarityDatabase<'_>
) -> Result<LimitedCostTracker, CostErrors>
pub fn new_free() -> LimitedCostTracker
[src]
pub fn load_boot_costs(
&mut self,
clarity_db: &mut ClarityDatabase<'_>
) -> Result<(), CostErrors>
[src]
&mut self,
clarity_db: &mut ClarityDatabase<'_>
) -> Result<(), CostErrors>
pub fn get_total(&self) -> ExecutionCost
[src]
pub fn set_total(&mut self, total: ExecutionCost)
[src]
pub fn get_limit(&self) -> ExecutionCost
[src]
Trait Implementations
impl Clone for LimitedCostTracker
[src]
fn clone(&self) -> LimitedCostTracker
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl CostTracker for LimitedCostTracker
[src]
fn compute_cost(
&mut self,
cost_function: ClarityCostFunction,
input: &[u64]
) -> Result<ExecutionCost, CostErrors>
[src]
&mut self,
cost_function: ClarityCostFunction,
input: &[u64]
) -> Result<ExecutionCost, CostErrors>
fn add_cost(&mut self, cost: ExecutionCost) -> Result<(), CostErrors>
[src]
fn add_memory(&mut self, memory: u64) -> Result<(), CostErrors>
[src]
fn drop_memory(&mut self, memory: u64)
[src]
fn reset_memory(&mut self)
[src]
fn short_circuit_contract_call(
&mut self,
contract: &QualifiedContractIdentifier,
function: &ClarityName,
input: &[u64]
) -> Result<bool, CostErrors>
[src]
&mut self,
contract: &QualifiedContractIdentifier,
function: &ClarityName,
input: &[u64]
) -> Result<bool, CostErrors>
impl CostTracker for &mut LimitedCostTracker
[src]
fn compute_cost(
&mut self,
cost_function: ClarityCostFunction,
input: &[u64]
) -> Result<ExecutionCost, CostErrors>
[src]
&mut self,
cost_function: ClarityCostFunction,
input: &[u64]
) -> Result<ExecutionCost, CostErrors>
fn add_cost(&mut self, cost: ExecutionCost) -> Result<(), CostErrors>
[src]
fn add_memory(&mut self, memory: u64) -> Result<(), CostErrors>
[src]
fn drop_memory(&mut self, memory: u64)
[src]
fn reset_memory(&mut self)
[src]
fn short_circuit_contract_call(
&mut self,
contract: &QualifiedContractIdentifier,
function: &ClarityName,
input: &[u64]
) -> Result<bool, CostErrors>
[src]
&mut self,
contract: &QualifiedContractIdentifier,
function: &ClarityName,
input: &[u64]
) -> Result<bool, CostErrors>
impl Debug for LimitedCostTracker
[src]
impl PartialEq<LimitedCostTracker> for LimitedCostTracker
[src]
Auto Trait Implementations
impl RefUnwindSafe for LimitedCostTracker
impl Send for LimitedCostTracker
impl Sync for LimitedCostTracker
impl Unpin for LimitedCostTracker
impl UnwindSafe for LimitedCostTracker
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,