pub struct CompileStats {
pub stage_times: HashMap<CompileStage, u64>,
pub total_time: u64,
pub source_size: usize,
pub output_size: usize,
}Expand description
编译统计信息
Fields§
§stage_times: HashMap<CompileStage, u64>各阶段耗时(毫秒)
total_time: u64总编译时间(毫秒)
source_size: usize源代码大小(字节)
output_size: usize生成代码大小(字节)
Trait Implementations§
Source§impl Clone for CompileStats
impl Clone for CompileStats
Source§fn clone(&self) -> CompileStats
fn clone(&self) -> CompileStats
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 CompileStats
impl Debug for CompileStats
Auto Trait Implementations§
impl Freeze for CompileStats
impl RefUnwindSafe for CompileStats
impl Send for CompileStats
impl Sync for CompileStats
impl Unpin for CompileStats
impl UnsafeUnpin for CompileStats
impl UnwindSafe for CompileStats
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