pub fn snap_bytes_bounds_error(&self, err:BoundsError) -> Bytes {
        use self::BoundsError::*;
        match err {
            TooSmall => 0.bytes(),
            TooBig   => self.last_line_end_byte_offset(),
        }
    }
/// Snaps the `BoundsError` to the closest valid byte offset.
Snaps the `BoundsError` to the closest valid byte offset.
Snaps the ` BoundsError ` to the closest valid byte offset .
pub fn snap_bytes_bounds_error(&self, err:BoundsError) -> Bytes {
        use self::BoundsError::*;
        match err {
            TooSmall => 0.bytes(),
            TooBig   => self.last_line_end_byte_offset(),
        }
    }
pub fn snap_bytes_bounds_error ( & self , err : BoundsError ) -> Bytes { use self :: BoundsError :: * ; match err { TooSmall => 0 . bytes ( ) , TooBig => self . last_line_end_byte_offset ( ) , } }
Snaps the `BoundsError` to the closest valid byte offset.
Snaps the ` BoundsError ` to the closest valid byte offset .
&self
err
BoundsError
&self
err
BoundsError