Trait reedline::Validator [−][src]
pub trait Validator {
fn validate(&self, line: &str) -> ValidationResult;
}
Expand description
The syntax validation trait. Implementers of this trait will check to see if the current input is incomplete and spans multiple lines
Required methods
fn validate(&self, line: &str) -> ValidationResult
fn validate(&self, line: &str) -> ValidationResult
The action that will handle the current buffer as a line and return the corresponding validation