pub struct IncrementalState {
pub rope: Rope,
pub line_index: LineIndex,
pub lex_checkpoints: Vec<LexCheckpoint>,
pub parse_checkpoints: Vec<ParseCheckpoint>,
pub ast: Node,
pub tokens: Vec<Token>,
pub source: String,
}Fields§
§rope: Rope§line_index: LineIndex§lex_checkpoints: Vec<LexCheckpoint>§parse_checkpoints: Vec<ParseCheckpoint>§ast: Node§tokens: Vec<Token>§source: StringImplementations§
Source§impl IncrementalState
impl IncrementalState
pub fn new(source: String) -> Self
pub fn find_lex_checkpoint(&self, byte: usize) -> Option<&LexCheckpoint>
pub fn find_parse_checkpoint(&self, byte: usize) -> Option<&ParseCheckpoint>
Trait Implementations§
Source§impl Clone for IncrementalState
impl Clone for IncrementalState
Source§fn clone(&self) -> IncrementalState
fn clone(&self) -> IncrementalState
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 Freeze for IncrementalState
impl RefUnwindSafe for IncrementalState
impl Send for IncrementalState
impl Sync for IncrementalState
impl Unpin for IncrementalState
impl UnsafeUnpin for IncrementalState
impl UnwindSafe for IncrementalState
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