pub fn location_of_byte_offset(&self, offset:Bytes) -> Result<Location,BoundsError> {
        let line        = self.line_index_of_byte_offset(offset)?;
        let line_offset = offset - self.byte_offset_of_line_index(line).unwrap();
        let column      = self.column_of_line_index_and_in_line_byte_offset(line,line_offset);
        let column      = column.unwrap();
        Ok(Location(line,column))
    }
/// The location of the provided byte offset.
The location of the provided byte offset.
The location of the provided byte offset .
pub fn location_of_byte_offset(&self, offset:Bytes) -> Result<Location,BoundsError> {
        let line        = self.line_index_of_byte_offset(offset)?;
        let line_offset = offset - self.byte_offset_of_line_index(line).unwrap();
        let column      = self.column_of_line_index_and_in_line_byte_offset(line,line_offset);
        let column      = column.unwrap();
        Ok(Location(line,column))
    }
pub fn location_of_byte_offset ( & self , offset : Bytes ) -> Result < Location , BoundsError > { let line = self . line_index_of_byte_offset ( offset ) ? ; let line_offset = offset - self . byte_offset_of_line_index ( line ) . unwrap ( ) ; let column = self . column_of_line_index_and_in_line_byte_offset ( line , line_offset ) ; let column = column . unwrap ( ) ; Ok ( Location ( line , column ) ) }
The location of the provided byte offset.
The location of the provided byte offset .
&self
offset
Bytes
&self
offset
Bytes