pub struct RopeString { /* private fields */ }Expand description
A rope for efficient large-string editing.
Implementations§
Source§impl RopeString
impl RopeString
pub fn new() -> Self
pub fn from_str(s: &str) -> Self
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn to_string(&self) -> String
pub fn byte_at(&self, idx: usize) -> Option<u8>
pub fn concat(&self, other: &RopeString) -> RopeString
pub fn append(&mut self, s: &str)
pub fn depth(&self) -> usize
Trait Implementations§
Source§impl Clone for RopeString
impl Clone for RopeString
Source§fn clone(&self) -> RopeString
fn clone(&self) -> RopeString
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RopeString
impl Debug for RopeString
Auto Trait Implementations§
impl Freeze for RopeString
impl RefUnwindSafe for RopeString
impl Send for RopeString
impl Sync for RopeString
impl Unpin for RopeString
impl UnsafeUnpin for RopeString
impl UnwindSafe for RopeString
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