Trait nom_grapheme_clusters::source::SourceIndex
source · pub trait SourceIndex: Debug {
type Output: ?Sized;
// Required method
fn get<'src>(&self, src: &'src Source) -> Option<&'src Self::Output>;
// Provided method
fn index<'src>(&self, src: &'src Source) -> &'src Self::Output { ... }
}
Expand description
An index on a source code.