pub struct BenchSpecTemplate {
pub name: String,
pub iterations: u32,
pub warmup: u32,
}Expand description
Pre-defined BenchSpec structure matching SDK’s BenchSpec.
This struct can be used as a template for your own UniFFI-annotated type.
Copy this definition and add the #[derive(uniffi::Record)] attribute.
Fields§
§name: StringName of the benchmark function to run.
iterations: u32Number of measurement iterations.
warmup: u32Number of warmup iterations before measurement.
Trait Implementations§
Source§impl Clone for BenchSpecTemplate
impl Clone for BenchSpecTemplate
Source§fn clone(&self) -> BenchSpecTemplate
fn clone(&self) -> BenchSpecTemplate
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 BenchSpecTemplate
impl Debug for BenchSpecTemplate
Source§impl<'de> Deserialize<'de> for BenchSpecTemplate
impl<'de> Deserialize<'de> for BenchSpecTemplate
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
Source§impl From<BenchSpec> for BenchSpecTemplate
impl From<BenchSpec> for BenchSpecTemplate
Source§impl From<BenchSpecTemplate> for BenchSpec
impl From<BenchSpecTemplate> for BenchSpec
Source§fn from(spec: BenchSpecTemplate) -> Self
fn from(spec: BenchSpecTemplate) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for BenchSpecTemplate
impl RefUnwindSafe for BenchSpecTemplate
impl Send for BenchSpecTemplate
impl Sync for BenchSpecTemplate
impl Unpin for BenchSpecTemplate
impl UnsafeUnpin for BenchSpecTemplate
impl UnwindSafe for BenchSpecTemplate
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