1 2 3 4 5
use std::ops::Range; pub trait Scanner { fn scan(&self, s: &str, trigger_index: usize) -> Option<Range<usize>>; }