pub fn replace(&mut self, range:impl RangeBounds, text:impl Into<Text>) {
        let text  = text.into();
        let range = self.crop_byte_range(range);
        self.rope.edit(range.into_rope_interval(),text.rope);
    }
/// Replaces the provided range with the provided text.
Replaces the provided range with the provided text.
Replaces the provided range with the provided text .
pub fn replace(&mut self, range:impl RangeBounds, text:impl Into<Text>) {
        let text  = text.into();
        let range = self.crop_byte_range(range);
        self.rope.edit(range.into_rope_interval(),text.rope);
    }
pub fn replace ( & mut self , range : impl RangeBounds , text : impl Into < Text > ) { let text = text . into ( ) ; let range = self . crop_byte_range ( range ) ; self . rope . edit ( range . into_rope_interval ( ) , text . rope ) ; }
Replaces the provided range with the provided text.
Replaces the provided range with the provided text .
&mut self
range
impl RangeBounds
text
impl Into<Text>
&mut self
range
impl RangeBounds
text
impl Into<Text>