pub struct EditBuffer { /* private fields */ }Expand description
A simple edit buffer that accumulates edits before applying them.
Implementations§
Source§impl EditBuffer
impl EditBuffer
pub fn new(max_pending: usize) -> Self
pub fn add(&mut self, edit: SourceEdit) -> bool
pub fn flush(&mut self) -> Vec<SourceEdit>
pub fn pending_count(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn total_delta(&self) -> i64
Auto Trait Implementations§
impl Freeze for EditBuffer
impl RefUnwindSafe for EditBuffer
impl Send for EditBuffer
impl Sync for EditBuffer
impl Unpin for EditBuffer
impl UnsafeUnpin for EditBuffer
impl UnwindSafe for EditBuffer
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