pub fn snap_column_location_error(&self, err:LocationError<Column>) -> Column {
        use self::BoundsError::*;
        use LocationError::*;
        match err {
            BoundsError        (TooSmall) => 0.column(),
            BoundsError        (TooBig)   => self.last_line_end_column(),
            LineTooShort       (column)   => column,
            NotClusterBoundary (column)   => column,
        }
    }
/// Snaps the `LocationError<Column>` to the closest valid column.
Snaps the `LocationError` to the closest valid column.
Snaps the ` LocationError ` to the closest valid column .
pub fn snap_column_location_error(&self, err:LocationError<Column>) -> Column {
        use self::BoundsError::*;
        use LocationError::*;
        match err {
            BoundsError        (TooSmall) => 0.column(),
            BoundsError        (TooBig)   => self.last_line_end_column(),
            LineTooShort       (column)   => column,
            NotClusterBoundary (column)   => column,
        }
    }
pub fn snap_column_location_error ( & self , err : LocationError < Column > ) -> Column { use self :: BoundsError :: * ; use LocationError :: * ; match err { BoundsError ( TooSmall ) => 0 . column ( ) , BoundsError ( TooBig ) => self . last_line_end_column ( ) , LineTooShort ( column ) => column , NotClusterBoundary ( column ) => column , } }
Snaps the `LocationError<Column>` to the closest valid column.
Snaps the ` LocationError<Column > ` to the closest valid column .
&self
err
LocationError<Column>
&self
err
LocationError<Column>