pub struct DirtyRegion {
pub start_line: usize,
pub end_line: usize,
pub start_byte: usize,
pub end_byte: usize,
}Expand description
Represents a “dirty” region in the source that needs re-parsing.
Fields§
§start_line: usize§end_line: usize§start_byte: usize§end_byte: usizeImplementations§
Source§impl DirtyRegion
impl DirtyRegion
pub fn new( start_line: usize, end_line: usize, start_byte: usize, end_byte: usize, ) -> Self
pub fn line_count(&self) -> usize
pub fn byte_count(&self) -> usize
pub fn is_single_line(&self) -> bool
Auto Trait Implementations§
impl Freeze for DirtyRegion
impl RefUnwindSafe for DirtyRegion
impl Send for DirtyRegion
impl Sync for DirtyRegion
impl Unpin for DirtyRegion
impl UnsafeUnpin for DirtyRegion
impl UnwindSafe for DirtyRegion
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