pub struct VmMemReadRun;

Trait Implementations§

The type of cost we’re measuring.
Data type of the sample running with.
Run a iteration of the CostRunner, called by run for 0..RUN_ITERATIONS.
Number of iterations to run, used to divide the resulting measured values. Defaults to 100 to average out the measurement noises for fast-running cases. If you find your measurements are finishing too slow, reduce this number.
Run the CostRunner. This method is called under CPU-and-memory tracking machinery, so anything that happens during it will be considered part of the cost for running the HostMeasurement at the returned input. Will call run_iter with iter set to each number in 0..RUN_ITERATIONS.
Get the total input from this run. Default to asking the host. May be overridden if host is not actually involved in the actual run. However, if overridden, there is a risk of the computed input being diverged from the actual input from the host’s perspective. So use it carefully. This should be after the run, outside of the CPU-and-memory tracking machineary.

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
Convert Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.
Convert Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be further downcast into Rc<ConcreteType> where ConcreteType implements Trait.
Convert &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &Any’s vtable from &Trait’s.
Convert &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &mut Any’s vtable from &mut Trait’s.
Convert Arc<Trait> (where Trait: Downcast) to Arc<Any>. Arc<Any> can then be further downcast into Arc<ConcreteType> where ConcreteType implements Trait.

Returns the argument unchanged.

Calls U::from(self).

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

Should always be Self
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.