pub struct UndefinedVariableReference { /* private fields */ }Implementations§
Source§impl UndefinedVariableReference
impl UndefinedVariableReference
pub fn new(predefined: impl IntoIterator<Item = String>) -> Self
Sourcepub fn external_variables(self, names: impl IntoIterator<Item = String>) -> Self
pub fn external_variables(self, names: impl IntoIterator<Item = String>) -> Self
Names intentionally supplied by callers; this does not define a value. Local read-before-definition diagnostics remain enabled.
Trait Implementations§
Source§impl Default for UndefinedVariableReference
impl Default for UndefinedVariableReference
Source§impl Rule for UndefinedVariableReference
impl Rule for UndefinedVariableReference
fn id(&self) -> &'static str
fn name(&self) -> &'static str
fn description(&self) -> &'static str
fn category(&self) -> RuleCategory
fn project_aware(&self) -> bool
fn check(&self, _makefile: &Makefile, _content: &str) -> Vec<Diagnostic>
fn check_project(&self, project: &Project) -> Vec<Diagnostic>
fn fixable(&self) -> bool
Source§fn fix_applicability(&self) -> Applicability
fn fix_applicability(&self) -> Applicability
Whether the fixes this rule offers can change what Make does, which is
what
rumk rule reports; the fixes themselves carry the applicability a
run acts on.Source§fn layout(&self) -> bool
fn layout(&self) -> bool
Whether the rule is about how the file is laid out rather than what
Make does with it, which is what
rumk fmt is responsible for. Every
other rule is left to rumk check.Source§fn check_read(&self, _failure: &ReadFailure) -> Vec<Diagnostic>
fn check_read(&self, _failure: &ReadFailure) -> Vec<Diagnostic>
Diagnostics for a file whose content could not be read as written.
Auto Trait Implementations§
impl Freeze for UndefinedVariableReference
impl RefUnwindSafe for UndefinedVariableReference
impl Send for UndefinedVariableReference
impl Sync for UndefinedVariableReference
impl Unpin for UndefinedVariableReference
impl UnsafeUnpin for UndefinedVariableReference
impl UnwindSafe for UndefinedVariableReference
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