pub struct LibraryBenchmarkConfig {
pub default_tool: Option<ValgrindTool>,
pub env_clear: Option<bool>,
pub envs: Vec<(OsString, Option<OsString>)>,
pub output_format: Option<OutputFormat>,
pub tools: Tools,
pub tools_override: Option<Tools>,
pub valgrind_args: RawArgs,
}
Available on crate feature
api
only.Expand description
The model for the configuration in library benchmarks
This is the configuration which is built from the configuration of the UI and for internal use only.
Fields§
§default_tool: Option<ValgrindTool>
The valgrind tool to run instead of the default callgrind
env_clear: Option<bool>
True if the environment variables should be cleared
envs: Vec<(OsString, Option<OsString>)>
The environment variables to set or pass through to the binary
output_format: Option<OutputFormat>
The configuration of the output format
tools: Tools
The valgrind tools to run in addition to the default tool
tools_override: Option<Tools>
The tool override at this configuration level
valgrind_args: RawArgs
The arguments to pass to all tools
Implementations§
Source§impl LibraryBenchmarkConfig
impl LibraryBenchmarkConfig
Sourcepub fn update_from_all<'a, T>(self, others: T) -> Selfwhere
T: IntoIterator<Item = Option<&'a Self>>,
pub fn update_from_all<'a, T>(self, others: T) -> Selfwhere
T: IntoIterator<Item = Option<&'a Self>>,
Update this configuration with all other configurations in the given order
Sourcepub fn resolve_envs(&self) -> Vec<(OsString, OsString)>
pub fn resolve_envs(&self) -> Vec<(OsString, OsString)>
Resolve the environment variables and create key, value pairs out of them
Sourcepub fn collect_envs(&self) -> Vec<(OsString, OsString)>
pub fn collect_envs(&self) -> Vec<(OsString, OsString)>
Collect all environment variables which don’t have a None
value
Trait Implementations§
Source§impl Clone for LibraryBenchmarkConfig
impl Clone for LibraryBenchmarkConfig
Source§fn clone(&self) -> LibraryBenchmarkConfig
fn clone(&self) -> LibraryBenchmarkConfig
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 LibraryBenchmarkConfig
impl Debug for LibraryBenchmarkConfig
Source§impl Default for LibraryBenchmarkConfig
impl Default for LibraryBenchmarkConfig
Source§fn default() -> LibraryBenchmarkConfig
fn default() -> LibraryBenchmarkConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for LibraryBenchmarkConfig
impl<'de> Deserialize<'de> for LibraryBenchmarkConfig
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 PartialEq for LibraryBenchmarkConfig
impl PartialEq for LibraryBenchmarkConfig
Source§impl Serialize for LibraryBenchmarkConfig
impl Serialize for LibraryBenchmarkConfig
impl StructuralPartialEq for LibraryBenchmarkConfig
Auto Trait Implementations§
impl Freeze for LibraryBenchmarkConfig
impl RefUnwindSafe for LibraryBenchmarkConfig
impl Send for LibraryBenchmarkConfig
impl Sync for LibraryBenchmarkConfig
impl Unpin for LibraryBenchmarkConfig
impl UnwindSafe for LibraryBenchmarkConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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