pub fn activate_selection_range(selection: &Selection, range: &Range) {
    // Note: In theory we don't need to re-add the range to the document if
    //       it's already there. Unfortunately, Safari is not spec-compliant
    //       and returns a copy of the range instead of a reference when using
    //       selection.getRangeAt(). Thus, we need to remove the existing
    //       ranges and (re-)add our range to the DOM.
    //
    //       See https://bugs.webkit.org/show_bug.cgi?id=145212
    selection.remove_all_ranges().unwrap();
    selection.add_range(&range).expect("Could not add range");
}
/// Activate the specified selection range in the DOM. Remove all previous
/// ranges.
Activate the specified selection range in the DOM. Remove all previous
ranges.
Activate the specified selection range in the DOM . Remove all previous ranges .
pub fn activate_selection_range(selection: &Selection, range: &Range) {
    // Note: In theory we don't need to re-add the range to the document if
    //       it's already there. Unfortunately, Safari is not spec-compliant
    //       and returns a copy of the range instead of a reference when using
    //       selection.getRangeAt(). Thus, we need to remove the existing
    //       ranges and (re-)add our range to the DOM.
    //
    //       See https://bugs.webkit.org/show_bug.cgi?id=145212
    selection.remove_all_ranges().unwrap();
    selection.add_range(&range).expect("Could not add range");
}
pub fn activate_selection_range ( selection : & Selection , range : & Range ) { // Note: In theory we don't need to re-add the range to the document if //       it's already there. Unfortunately, Safari is not spec-compliant //       and returns a copy of the range instead of a reference when using //       selection.getRangeAt(). Thus, we need to remove the existing //       ranges and (re-)add our range to the DOM. // //       See https://bugs.webkit.org/show_bug.cgi?id=145212 selection . remove_all_ranges ( ) . unwrap ( ) ; selection . add_range ( & range ) . expect ( " " ) ; }
Activate the specified selection range in the DOM.
Activate the specified selection range in the DOM .
selection
&Selection
range
&Range
selection
&Selection
range
&Range