Enum rustfmt_nightly::formatting::Timer
source · enum Timer {
Disabled,
Initialized(Instant),
DoneParsing(Instant, Instant),
DoneFormatting(Instant, Instant, Instant),
}
Variants§
Disabled
Initialized(Instant)
DoneParsing(Instant, Instant)
DoneFormatting(Instant, Instant, Instant)
Implementations§
source§impl Timer
impl Timer
fn start() -> Timer
fn done_parsing(self) -> Self
fn done_formatting(self) -> Self
sourcefn get_parse_time(&self) -> f32
fn get_parse_time(&self) -> f32
Returns the time it took to parse the source files in seconds.
sourcefn get_format_time(&self) -> f32
fn get_format_time(&self) -> f32
Returns the time it took to go from the parsed AST to the formatted output. Parsing time is not included.
fn duration_to_f32(d: Duration) -> f32
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Timer
impl Send for Timer
impl Sync for Timer
impl Unpin for Timer
impl UnwindSafe for Timer
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
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: 48 bytes
Size for each variant:
Disabled
: 0 bytesInitialized
: 16 bytesDoneParsing
: 32 bytesDoneFormatting
: 48 bytes