pubmodimports;usestd::path::Path;usecrate::diagnostic::Diagnostic;/// A lint/style rule that can check source files and optionally auto-fix violations.
pubtraitRule{/// Unique rule identifier (e.g., "RC1001").
fnid(&self)->&str;/// Human-readable rule name.
fnname(&self)->&str;/// Check file content for violations and return diagnostics.
fncheck(&self, content:&str, file:&Path)->Vec<Diagnostic>;/// Return the fixed content. If no fix is needed, returns the original content unchanged.
fnfix(&self, content:&str)-> String;}