fn validate(&self, ctx: &mut ValidationContext) -> Result<ValidationResult, ReadlineError> {
        use ValidationResult::{Incomplete, /*Invalid,*/ Valid};
        let input = ctx.input();
        let result = if input.starts_with(".") {
            Valid(None)
        } else if !input.ends_with(';') {
            Incomplete
        } else {
            Valid(None)
        };
        Ok(result)
    }
// Takes the currently edited input and returns a ValidationResult indicating whether it
// is valid or not along with an option message to display about the result.
Takes the currently edited input and returns a ValidationResult indicating whether it
is valid or not along with an option message to display about the result.
Takes the currently edited input and returns a ValidationResult indicating whether it is valid or not along with an option message to display about the result .
fn validate(&self, ctx: &mut ValidationContext) -> Result<ValidationResult, ReadlineError> {
        use ValidationResult::{Incomplete, /*Invalid,*/ Valid};
        let input = ctx.input();
        let result = if input.starts_with(".") {
            Valid(None)
        } else if !input.ends_with(';') {
            Incomplete
        } else {
            Valid(None)
        };
        Ok(result)
    }
fn validate ( & self , ctx : & mut ValidationContext ) -> Result < ValidationResult , ReadlineError > { use ValidationResult :: { Incomplete , /*Invalid,*/ Valid } ; let input = ctx . input ( ) ; let result = if input . starts_with ( " " ) { Valid ( None ) } else if ! input . ends_with ( ';' ) { Incomplete } else { Valid ( None ) } ; Ok ( result ) }
Takes the currently edited input and returns a ValidationResult indicating whether it
is valid or not along with an option message to display about the result.
Takes the currently edited input and returns a ValidationResult indicating whether it is valid or not along with an option message to display about the result .
&self
ctx
&mut ValidationContext
&self
ctx
&mut ValidationContext