Struct clarity_repl::clarity::costs::ExecutionCost [−][src]
Fields
write_length: u64
write_count: u64
read_length: u64
read_count: u64
runtime: u64
Implementations
impl ExecutionCost
[src]
pub fn zero() -> ExecutionCost
[src]
pub fn max_value() -> ExecutionCost
[src]
pub fn runtime(runtime: u64) -> ExecutionCost
[src]
pub fn add_runtime(&mut self, runtime: u64) -> Result<(), CostErrors>
[src]
pub fn add(&mut self, other: &ExecutionCost) -> Result<(), CostErrors>
[src]
pub fn sub(&mut self, other: &ExecutionCost) -> Result<(), CostErrors>
[src]
pub fn multiply(&mut self, times: u64) -> Result<(), CostErrors>
[src]
pub fn exceeds(&self, other: &ExecutionCost) -> bool
[src]
Returns whether or not this cost exceeds any dimension of the other cost.
pub fn max_cost(first: ExecutionCost, second: ExecutionCost) -> ExecutionCost
[src]
Trait Implementations
impl Clone for ExecutionCost
[src]
fn clone(&self) -> ExecutionCost
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for ExecutionCost
[src]
impl<'de> Deserialize<'de> for ExecutionCost
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Display for ExecutionCost
[src]
impl Eq for ExecutionCost
[src]
impl PartialEq<ExecutionCost> for ExecutionCost
[src]
fn eq(&self, other: &ExecutionCost) -> bool
[src]
fn ne(&self, other: &ExecutionCost) -> bool
[src]
impl Serialize for ExecutionCost
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralEq for ExecutionCost
[src]
impl StructuralPartialEq for ExecutionCost
[src]
Auto Trait Implementations
impl RefUnwindSafe for ExecutionCost
impl Send for ExecutionCost
impl Sync for ExecutionCost
impl Unpin for ExecutionCost
impl UnwindSafe for ExecutionCost
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> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
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> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
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>,