pub fn end_byte_offset_of_line_index(&self, line:Line) -> Result<Bytes,BoundsError> {
        self.validate_line_index(line)?;
        let next_line      = line + 1.line();
        let next_line_off  = self.byte_offset_of_line_index(next_line).ok();
        let next_line_prev = next_line_off.and_then(|t| self.prev_grapheme_offset(t));
        Ok(next_line_prev.unwrap_or_else(|| self.byte_size()))
    }
/// Return the offset after the last character of a given line if the line exists.
Return the offset after the last character of a given line if the line exists.
Return the offset after the last character of a given line if the line exists .
pub fn end_byte_offset_of_line_index(&self, line:Line) -> Result<Bytes,BoundsError> {
        self.validate_line_index(line)?;
        let next_line      = line + 1.line();
        let next_line_off  = self.byte_offset_of_line_index(next_line).ok();
        let next_line_prev = next_line_off.and_then(|t| self.prev_grapheme_offset(t));
        Ok(next_line_prev.unwrap_or_else(|| self.byte_size()))
    }
pub fn end_byte_offset_of_line_index ( & self , line : Line ) -> Result < Bytes , BoundsError > { self . validate_line_index ( line ) ? ; let next_line = line + 1 . line ( ) ; let next_line_off = self . byte_offset_of_line_index ( next_line ) . ok ( ) ; let next_line_prev = next_line_off . and_then ( | t | self . prev_grapheme_offset ( t ) ) ; Ok ( next_line_prev . unwrap_or_else ( | | self . byte_size ( ) ) ) }
Return the offset after the last character of a given line if the line exists.
Return the offset after the last character of a given line if the line exists .
&self
line
Line
&self
line
Line