pub struct BenchSpecFfi {
pub name: String,
pub iterations: u32,
pub warmup: u32,
}Expand description
FFI-ready benchmark specification.
Use this as a template for your UniFFI Record type.
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 BenchSpecFfi
impl Clone for BenchSpecFfi
Source§fn clone(&self) -> BenchSpecFfi
fn clone(&self) -> BenchSpecFfi
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 BenchSpecFfi
impl Debug for BenchSpecFfi
Source§impl<'de> Deserialize<'de> for BenchSpecFfi
impl<'de> Deserialize<'de> for BenchSpecFfi
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 BenchSpecFfi
impl From<BenchSpec> for BenchSpecFfi
Source§impl From<BenchSpecFfi> for BenchSpec
impl From<BenchSpecFfi> for BenchSpec
Source§fn from(spec: BenchSpecFfi) -> Self
fn from(spec: BenchSpecFfi) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for BenchSpecFfi
impl RefUnwindSafe for BenchSpecFfi
impl Send for BenchSpecFfi
impl Sync for BenchSpecFfi
impl Unpin for BenchSpecFfi
impl UnsafeUnpin for BenchSpecFfi
impl UnwindSafe for BenchSpecFfi
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