pub fn validate_line_index(&self, line:Line) -> Result<Line,BoundsError> {
        use BoundsError::*;
        if      line < 0.line()               {Err(TooSmall)}
        else if line > self.last_line_index() {Err(TooBig)}
        else                                  {Ok(line)}
    }
/// Check whether the provided line index is valid in this text.
Check whether the provided line index is valid in this text.
Check whether the provided line index is valid in this text .
pub fn validate_line_index(&self, line:Line) -> Result<Line,BoundsError> {
        use BoundsError::*;
        if      line < 0.line()               {Err(TooSmall)}
        else if line > self.last_line_index() {Err(TooBig)}
        else                                  {Ok(line)}
    }
pub fn validate_line_index ( & self , line : Line ) -> Result < Line , BoundsError > { use BoundsError :: * ; if line < 0 . line ( ) { Err ( TooSmall ) } else if line > self . last_line_index ( ) { Err ( TooBig ) } else { Ok ( line ) } }
Check whether the provided line index is valid in this text.
Check whether the provided line index is valid in this text .
&self
line
Line
&self
line
Line