#[non_exhaustive]pub enum TimingTarget {
Library,
BuildScriptCompile,
BuildScriptRun,
Named {
name: String,
kind: String,
},
Other(String),
}Expand description
What the timing report says a unit is.
The report’s target field is a display string rather than structured data, and it renders every
library target as the empty string. A plain rlib, a procedural macro, a cdylib and a dylib
are therefore indistinguishable here, which is one of the two reasons the verbose log is needed
as well.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Library
A library of some sort.
BuildScriptCompile
Compiling a build script.
BuildScriptRun
Running a build script that was already compiled.
Named
A named target, such as rg "bin".
Fields
Other(String)
Something this parser has not seen, kept verbatim.
Implementations§
Trait Implementations§
Source§impl Clone for TimingTarget
impl Clone for TimingTarget
Source§impl Debug for TimingTarget
impl Debug for TimingTarget
impl Eq for TimingTarget
Source§impl Ord for TimingTarget
impl Ord for TimingTarget
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for TimingTarget
impl PartialEq for TimingTarget
Source§impl PartialOrd for TimingTarget
impl PartialOrd for TimingTarget
impl StructuralPartialEq for TimingTarget
Auto Trait Implementations§
impl Freeze for TimingTarget
impl RefUnwindSafe for TimingTarget
impl Send for TimingTarget
impl Sync for TimingTarget
impl Unpin for TimingTarget
impl UnsafeUnpin for TimingTarget
impl UnwindSafe for TimingTarget
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