pub struct ScriptDelta<'a> {
pub added: Vec<Section<'a>>,
pub modified: Vec<(usize, Section<'a>)>,
pub removed: Vec<usize>,
pub new_issues: Vec<ParseIssue>,
}Available on crate feature
stream only.Expand description
Incremental parsing delta for efficient editor updates
Fields§
§added: Vec<Section<'a>>Sections that were added
modified: Vec<(usize, Section<'a>)>Sections that were modified (old index -> new section)
removed: Vec<usize>Section indices that were removed
new_issues: Vec<ParseIssue>New parse issues
Implementations§
Trait Implementations§
Source§impl<'a> Clone for ScriptDelta<'a>
impl<'a> Clone for ScriptDelta<'a>
Source§fn clone(&self) -> ScriptDelta<'a>
fn clone(&self) -> ScriptDelta<'a>
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 moreAuto Trait Implementations§
impl<'a> Freeze for ScriptDelta<'a>
impl<'a> RefUnwindSafe for ScriptDelta<'a>
impl<'a> Send for ScriptDelta<'a>
impl<'a> Sync for ScriptDelta<'a>
impl<'a> Unpin for ScriptDelta<'a>
impl<'a> UnwindSafe for ScriptDelta<'a>
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