Check

Trait Check 

Source
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§

Source

fn new() -> Self
where Self: Sized,

Returns a new struct of type CheckerType

Source

fn check(&self, text: &str) -> CheckResult

Checks the given text to see if its plaintext

Implementors§

Source§

impl Check for Checker<Athena>

Source§

impl Check for Checker<DefaultChecker>

Source§

impl Check for Checker<EnglishChecker>

given an input, check every item in the array and return true if any of them match

Source§

impl Check for Checker<LemmeKnow>

Source§

impl Check for Checker<RegexChecker>