pub struct EmbeddedBenchSpec {
pub function: String,
pub iterations: u32,
pub warmup: u32,
}Available on crate feature
full only.Expand description
Represents a benchmark specification for embedding.
This is a simple struct that can be serialized to JSON and embedded in mobile app bundles.
Fields§
§function: StringThe benchmark function name (e.g., “my_crate::my_benchmark”)
iterations: u32Number of benchmark iterations
warmup: u32Number of warmup iterations
Trait Implementations§
Source§impl Clone for EmbeddedBenchSpec
impl Clone for EmbeddedBenchSpec
Source§fn clone(&self) -> EmbeddedBenchSpec
fn clone(&self) -> EmbeddedBenchSpec
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EmbeddedBenchSpec
impl Debug for EmbeddedBenchSpec
Source§impl<'de> Deserialize<'de> for EmbeddedBenchSpec
impl<'de> Deserialize<'de> for EmbeddedBenchSpec
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for EmbeddedBenchSpec
impl RefUnwindSafe for EmbeddedBenchSpec
impl Send for EmbeddedBenchSpec
impl Sync for EmbeddedBenchSpec
impl Unpin for EmbeddedBenchSpec
impl UnsafeUnpin for EmbeddedBenchSpec
impl UnwindSafe for EmbeddedBenchSpec
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