pub fn sub(&self, range:impl RangeBounds) -> Text {
        let range = self.crop_byte_range(range);
        let rope  = self.rope.subseq(range.into_rope_interval());
        Text {rope}
    }
/// Return text narrowed to the given range.
Return text narrowed to the given range.
Return text narrowed to the given range .
pub fn sub(&self, range:impl RangeBounds) -> Text {
        let range = self.crop_byte_range(range);
        let rope  = self.rope.subseq(range.into_rope_interval());
        Text {rope}
    }
pub fn sub ( & self , range : impl RangeBounds ) -> Text { let range = self . crop_byte_range ( range ) ; let rope = self . rope . subseq ( range . into_rope_interval ( ) ) ; Text { rope } }
Return text narrowed to the given range.
Return text narrowed to the given range .
&self
range
impl RangeBounds
&self
range
impl RangeBounds