EasyLocation

Trait EasyLocation 

Source
pub trait EasyLocation<'a>: Files<'a> {
    // Required method
    fn file_id(&'a self, byte_index: usize) -> <Self as Files<'a>>::FileId;
}

Required Methods§

Source

fn file_id(&'a self, byte_index: usize) -> <Self as Files<'a>>::FileId

Implementations on Foreign Types§

Source§

impl<'a, N, S> EasyLocation<'a> for SimpleFile<N, S>
where N: 'a + Display + Clone, S: 'a + AsRef<str>,

Source§

fn file_id(&'a self, _: usize) -> <Self as Files<'a>>::FileId

Implementors§

Source§

impl<'a, S: 'a + AsRef<str>> EasyLocation<'a> for PreprocessedFile<S>