pub fn remove<R>(&mut self, char_range: R)
    where
        R: RangeBounds<usize>,
    {
        self.try_remove(char_range).unwrap()
    }
/// Removes the text in the given char index range.
///
/// Uses range syntax, e.g. `2..7`, `2..`, etc.  The range is in `char`
/// indices.
///
/// Runs in O(M + log N) time, where N is the length of the `Rope` and M
/// is the length of the range being removed.
///
/// # Example
///
/// ```
/// # use ropey::Rope;
/// let mut rope = Rope::from_str("Hello world!");
/// rope.remove(5..);
///
/// assert_eq!("Hello", rope);
/// ```
///
/// # Panics
///
/// Panics if the start of the range is greater than the end, or if the
/// end is out of bounds (i.e. `end > len_chars()`).
Removes the text in the given char index range.

Runs in O(M + log N) time, where N is the length of the `Rope` and M
is the length of the range being removed.
Removes the text in the given char index range . Runs in O ( M + log N ) time where N is the length of the ` Rope ` and M is the length of the range being removed .
pub fn remove<R>(&mut self, char_range: R)
    where
        R: RangeBounds<usize>,
    {
        self.try_remove(char_range).unwrap()
    }
pub fn remove < R > ( & mut self , char_range : R ) where R : RangeBounds < usize > , { self . try_remove ( char_range ) . unwrap ( ) }
Removes the text in the given char index range.
Removes the text in the given char index range .
&mut self
char_range
R
example
None
use ropey::rope;
let mut rope = Rope::from_str("Hello world!");
rope.remove(5..).


let mut rope = Rope :: from_str ( " Hello world! " ) ; rope . remove ( 5 .. ) .
panics
Panics if the start of the range is greater than the end, or if the
end is out of bounds `).
Panics if the start of the range is greater than the end or if the end is out of bounds ` ) .