[][src]Macro runestick::span

macro_rules! span {
    ($start:expr, $end:expr) => { ... };
}

Construct a span that can be used during pattern matching.

Examples

use runestick::{Span, span};

let s = Span::new(0, 10);

assert!(match s {
    span!(0, 10) => true,
    _ => false,
});