pub(crate) struct Instructions;Trait Implementations§
Source§impl ValueFormatter for Instructions
impl ValueFormatter for Instructions
Source§fn scale_values(&self, _: f64, _: &mut [f64]) -> &'static str
fn scale_values(&self, _: f64, _: &mut [f64]) -> &'static str
Scale the given values to some appropriate unit and return the unit string. Read more
Source§fn scale_throughputs(
&self,
_: f64,
_: &Throughput,
_: &mut [f64],
) -> &'static str
fn scale_throughputs( &self, _: f64, _: &Throughput, _: &mut [f64], ) -> &'static str
Convert the given measured values into throughput numbers based on the given throughput
value, scale them to some appropriate unit, and return the unit string. Read more
Source§fn scale_for_machines(&self, _: &mut [f64]) -> &'static str
fn scale_for_machines(&self, _: &mut [f64]) -> &'static str
Scale the values and return a unit string designed for machines. Read more
Source§fn format_value(&self, value: f64) -> String
fn format_value(&self, value: f64) -> String
Format the value (with appropriate unit) and return it as a string.
Source§fn format_throughput(&self, throughput: &Throughput, value: f64) -> String
fn format_throughput(&self, throughput: &Throughput, value: f64) -> String
Format the value as a throughput measurement. The value represents the measurement value;
the implementor will have to calculate bytes per second, iterations per cycle, etc.
Auto Trait Implementations§
impl Freeze for Instructions
impl RefUnwindSafe for Instructions
impl Send for Instructions
impl Sync for Instructions
impl Unpin for Instructions
impl UnsafeUnpin for Instructions
impl UnwindSafe for Instructions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more