pub struct Builtin {
pub name: &'static str,
pub stage: Stage,
pub scope: Scope,
pub severity: Severity,
pub run: fn(&Ctx<'_>) -> Outcome,
pub fix: Fix,
pub reach: Reach,
}Expand description
A check compiled into the binary.
Fields§
§name: &'static str§stage: Stage§scope: Scope§severity: Severity§run: fn(&Ctx<'_>) -> Outcome§fix: FixAlmost always Fix::None; see CHECKS.
reach: ReachAlmost always Convention; the exceptions are pinned in the registry.
Trait Implementations§
Source§impl Check for Builtin
impl Check for Builtin
fn name(&self) -> &str
fn stage(&self) -> Stage
fn scope(&self) -> Scope
fn severity(&self) -> Severity
Source§fn reach(&self) -> Reach
fn reach(&self) -> Reach
How far the check reaches when
amont.conventions is declared —
see Reach. Externals default to Convention, which costs them
nothing: a declared check only exists where an amont.conf does,
and that is exactly the declaration the mode asks for.fn run(&self, ctx: &Ctx<'_>) -> Outcome
Auto Trait Implementations§
impl Freeze for Builtin
impl RefUnwindSafe for Builtin
impl Send for Builtin
impl Sync for Builtin
impl Unpin for Builtin
impl UnsafeUnpin for Builtin
impl UnwindSafe for Builtin
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