pub struct CursorValidator;Trait Implementations§
Source§impl Validator for CursorValidator
impl Validator for CursorValidator
Source§fn patterns(&self) -> &[&str]
fn patterns(&self) -> &[&str]
File glob patterns this validator claims (e.g.
.claude/agents/**/*.md).Source§fn validate(&self, path: &Path, src: &str) -> Vec<Diagnostic>
fn validate(&self, path: &Path, src: &str) -> Vec<Diagnostic>
Validate
src (the file contents) for path. Returns all diagnostics.Source§fn validate_batch(&self, _files: &[(PathBuf, String)]) -> Vec<Diagnostic>
fn validate_batch(&self, _files: &[(PathBuf, String)]) -> Vec<Diagnostic>
Cross-file validation called once after all per-file passes. Receives
only the files claimed by this validator. Default implementation returns
no diagnostics; override for rules that require global state (e.g.
duplicate-name detection).
Auto Trait Implementations§
impl Freeze for CursorValidator
impl RefUnwindSafe for CursorValidator
impl Send for CursorValidator
impl Sync for CursorValidator
impl Unpin for CursorValidator
impl UnsafeUnpin for CursorValidator
impl UnwindSafe for CursorValidator
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