pub struct InitConfig {
pub target: Target,
pub project_name: String,
pub output_dir: PathBuf,
pub generate_examples: bool,
}Expand description
Configuration for initializing a new benchmark project.
Used by the cargo mobench init command to generate project scaffolding.
§Example
use mobench_sdk::{InitConfig, Target};
use std::path::PathBuf;
let config = InitConfig {
target: Target::Android,
project_name: "my-benchmarks".to_string(),
output_dir: PathBuf::from("./bench-mobile"),
generate_examples: true,
};Fields§
§target: TargetTarget platform(s) to initialize for.
project_name: StringName of the benchmark project/crate.
output_dir: PathBufOutput directory for generated files.
generate_examples: boolWhether to generate example benchmark functions.
Trait Implementations§
Source§impl Clone for InitConfig
impl Clone for InitConfig
Source§fn clone(&self) -> InitConfig
fn clone(&self) -> InitConfig
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 moreAuto Trait Implementations§
impl Freeze for InitConfig
impl RefUnwindSafe for InitConfig
impl Send for InitConfig
impl Sync for InitConfig
impl Unpin for InitConfig
impl UnwindSafe for InitConfig
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