pub struct TidyCtx {
tidy_flags: TidyFlags,
diag_ctx: Arc<Mutex<DiagCtxInner>>,
}Expand description
Collects diagnostics from all tidy steps, and contains shared information that determines how should message and logs be presented.
Since checks are executed in parallel, the context is internally synchronized, to avoid all checks to lock it explicitly.
Fields§
§tidy_flags: TidyFlags§diag_ctx: Arc<Mutex<DiagCtxInner>>Implementations§
Source§impl TidyCtx
impl TidyCtx
pub fn new(root_path: &Path, verbose: bool, tidy_flags: TidyFlags) -> Self
pub fn is_bless_enabled(&self) -> bool
pub fn start_check<Id: Into<CheckId>>(&self, id: Id) -> RunningCheck
pub fn into_failed_checks(self) -> Vec<FinishedCheck>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TidyCtx
impl RefUnwindSafe for TidyCtx
impl Send for TidyCtx
impl Sync for TidyCtx
impl Unpin for TidyCtx
impl UnwindSafe for TidyCtx
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,
§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> ErasedDestructor for Twhere
T: 'static,
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: 16 bytes