Trait reedline::Validator

source ·
pub trait Validator: Send {
    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§

source

fn validate(&self, line: &str) -> ValidationResult

The action that will handle the current buffer as a line and return the corresponding validation

Implementors§