Trait scan_rules::input::SkipSpace [] [src]

pub trait SkipSpace: 'static {
    fn match_spaces(a: &str, b: &str) -> Result<(usize, usize), usize>;
    fn skip_space(a: &str) -> usize;
}

Defines an interface for skipping whitespace.

Required Methods

Given two strings, does the leading whitespace match?

If so, how many leading bytes from each should be dropped?

If not, after many bytes into a do they disagree?

Return the number of bytes of leading whitespace in a that should be skipped.

Implementors