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