pub trait Check {
// Required methods
fn new() -> Self
where Self: Sized;
fn check(&self, text: &str) -> CheckResult;
}
Expand description
Every checker must implement this trait Which checks the given text to see if its plaintext and returns CheckResult, which is our results object.
Required Methods§
Sourcefn check(&self, text: &str) -> CheckResult
fn check(&self, text: &str) -> CheckResult
Checks the given text to see if its plaintext