pub struct LineCacheShadow { /* private fields */ }
Expand description
The line cache shadow tracks the state of the line cache in the front-end.
Any content marked as valid here is up-to-date in the current state of the
view. Also, if dirty
is false, then the entire line cache is valid.
Implementations§
Source§impl LineCacheShadow
impl LineCacheShadow
pub fn edit(&mut self, start: usize, end: usize, replace: usize)
pub fn partial_invalidate(&mut self, start: usize, end: usize, invalid: u8)
pub fn needs_render(&self, plan: &RenderPlan) -> bool
pub fn spans(&self) -> &[Span]
pub fn iter_with_plan<'a>(&'a self, plan: &'a RenderPlan) -> PlanIterator<'a> ⓘ
Trait Implementations§
Source§impl Debug for LineCacheShadow
impl Debug for LineCacheShadow
Source§impl Default for LineCacheShadow
impl Default for LineCacheShadow
Source§fn default() -> LineCacheShadow
fn default() -> LineCacheShadow
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LineCacheShadow
impl RefUnwindSafe for LineCacheShadow
impl Send for LineCacheShadow
impl Sync for LineCacheShadow
impl Unpin for LineCacheShadow
impl UnwindSafe for LineCacheShadow
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