pub fn location(&self, id: u32, byte_index: usize) -> Option<Location> {
        let line_index = self.line_index(id, byte_index)?;

        Some(Location {
            line_number: self.line_number(id, line_index)?,
            column_number: self.column_number(id, line_index, byte_index)?,
        })
    }
/// Convenience method for returning line and column number at the given
/// byte index in the file.
Convenience method for returning line and column number at the given
byte index in the file.
Convenience method for returning line and column number at the given byte index in the file .
pub fn location(&self, id: u32, byte_index: usize) -> Option<Location> {
        let line_index = self.line_index(id, byte_index)?;
        Some(Location {
            line_number: self.line_number(id, line_index)?,
            column_number: self.column_number(id, line_index, byte_index)?,
        })
    }
pub fn location ( & self , id : u32 , byte_index : usize ) -> Option < Location > { let line_index = self . line_index ( id , byte_index ) ? ; Some ( Location { line_number : self . line_number ( id , line_index ) ? , column_number : self . column_number ( id , line_index , byte_index ) ? , } ) }
Convenience method for returning line and column number at the given
byte index in the file.
Convenience method for returning line and column number at the given byte index in the file .
&self
id
u32
byte_index
usize
&self
id
u32
byte_index
usize