pub fn snap_selection(&self, selection:Selection) -> Selection {
        let start = self.snap_location(selection.start);
        let end   = self.snap_location(selection.end);
        selection.with_start(start).with_end(end)
    }
/// Constrain the selection to values valid inside of the current text buffer.
Constrain the selection to values valid inside of the current text buffer.
Constrain the selection to values valid inside of the current text buffer .
pub fn snap_selection(&self, selection:Selection) -> Selection {
        let start = self.snap_location(selection.start);
        let end   = self.snap_location(selection.end);
        selection.with_start(start).with_end(end)
    }
pub fn snap_selection ( & self , selection : Selection ) -> Selection { let start = self . snap_location ( selection . start ) ; let end = self . snap_location ( selection . end ) ; selection . with_start ( start ) . with_end ( end ) }
Constrain the selection to values valid inside of the current text buffer.
Constrain the selection to values valid inside of the current text buffer .
&self
selection
Selection
&self
selection
Selection