Skip to main content

Rule

Trait Rule 

Source
pub trait Rule {
    // Required methods
    fn code(&self) -> &'static str;
    fn check(&self, g: &Graph, out: &mut Vec<Diagnostic>);
}

Required Methods§

Source

fn code(&self) -> &'static str

Source

fn check(&self, g: &Graph, out: &mut Vec<Diagnostic>)

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§