pub struct Rope { /* private fields */ }
Implementations§
source§impl Rope
impl Rope
pub fn new() -> Rope
pub fn text_fingerprint(text: &str) -> HashMatrix
pub fn append(&mut self, rope: Rope)
pub fn replace(&mut self, range: Range<usize>, text: &str)
pub fn slice(&self, range: Range<usize>) -> Rope
pub fn slice_rows(&self, range: Range<u32>) -> Rope
pub fn push(&mut self, text: &str)
pub fn push_front(&mut self, text: &str)
pub fn summary(&self) -> TextSummary
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn max_point(&self) -> Point
pub fn max_point_utf16(&self) -> PointUtf16
pub fn cursor(&self, offset: usize) -> Cursor<'_>
pub fn chars(&self) -> impl Iterator<Item = char>
pub fn chars_at(&self, start: usize) -> impl Iterator<Item = char>
pub fn reversed_chars_at(&self, start: usize) -> impl Iterator<Item = char>
pub fn bytes_in_range(&self, range: Range<usize>) -> Bytes<'_> ⓘ
pub fn reversed_bytes_in_range(&self, range: Range<usize>) -> Bytes<'_> ⓘ
pub fn chunks(&self) -> Chunks<'_> ⓘ
pub fn chunks_in_range(&self, range: Range<usize>) -> Chunks<'_> ⓘ
pub fn reversed_chunks_in_range(&self, range: Range<usize>) -> Chunks<'_> ⓘ
pub fn offset_to_offset_utf16(&self, offset: usize) -> OffsetUtf16
pub fn offset_utf16_to_offset(&self, offset: OffsetUtf16) -> usize
pub fn offset_to_point(&self, offset: usize) -> Point
pub fn offset_to_point_utf16(&self, offset: usize) -> PointUtf16
pub fn point_to_point_utf16(&self, point: Point) -> PointUtf16
pub fn point_to_offset(&self, point: Point) -> usize
pub fn point_utf16_to_offset(&self, point: PointUtf16) -> usize
pub fn unclipped_point_utf16_to_offset( &self, point: Unclipped<PointUtf16> ) -> usize
pub fn unclipped_point_utf16_to_point( &self, point: Unclipped<PointUtf16> ) -> Point
pub fn clip_offset(&self, offset: usize, bias: Bias) -> usize
pub fn clip_offset_utf16(&self, offset: OffsetUtf16, bias: Bias) -> OffsetUtf16
pub fn clip_point(&self, point: Point, bias: Bias) -> Point
pub fn clip_point_utf16( &self, point: Unclipped<PointUtf16>, bias: Bias ) -> PointUtf16
pub fn line_len(&self, row: u32) -> u32
pub fn fingerprint(&self) -> HashMatrix
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Rope
impl Send for Rope
impl Sync for Rope
impl Unpin for Rope
impl UnwindSafe for Rope
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more