#[non_exhaustive]
pub enum Price {
    Bounded(u64),
    Unbounded(u64),
}
Expand description

Evaluation cost. This is a context relative measure of how expensive it is to handle something. In the interpreter contexts, this is most likely an approximation of the count of the smallest significant step in interpretation evaluating given program will be equivalent to. In the formatting contexts, this is most likely a measure of how much allocation will be performed. In histogram plotting, this is simply a guessed at indicator of what multiple of the fastest observed plotting time the generated data will take.

Variants (Non-exhaustive)

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.

Bounded(u64)

Unbounded(u64)

Trait Implementations

The resulting type after applying the + operator.

Performs the + operation. Read more

Method which takes an iterator and generates Self from the elements by “summing up” the items. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.