pub struct BuildStep {
pub type: String,
pub children: Vec<BuildStep>,
pub duration: Duration,
pub full_name: String,
}
Expand description
Represents a single bootstrap step, with the accumulated duration of all its children.
Fields§
§type: String
§children: Vec<BuildStep>
§duration: Duration
§full_name: String
Implementations§
Source§impl BuildStep
impl BuildStep
Sourcepub fn from_invocation(invocation: &JsonInvocation) -> Self
pub fn from_invocation(invocation: &JsonInvocation) -> Self
Create a BuildStep
representing a single invocation of bootstrap.
The most important thing is that the build step aggregates the
durations of all children, so that it can be easily accessed.
pub fn find_all_by_type(&self, type: &str) -> Vec<&Self>
fn find_by_type<'a>(&'a self, type: &str, result: &mut Vec<&'a Self>)
Sourcepub fn linearize_steps(&self) -> Vec<(u32, &BuildStep)>
pub fn linearize_steps(&self) -> Vec<(u32, &BuildStep)>
Returns a Vec with all substeps, ordered by their hierarchical order. The first element of the tuple is the depth of a given step.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BuildStep
impl RefUnwindSafe for BuildStep
impl Send for BuildStep
impl Sync for BuildStep
impl Unpin for BuildStep
impl UnwindSafe for BuildStep
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,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 88 bytes