pub struct Parser<'a> { /* private fields */ }Implementations§
Source§impl<'a> Parser<'a>
impl<'a> Parser<'a>
pub fn new( worksheets: Vec<String>, defined_names: Vec<DefinedNameS>, tables: HashMap<String, Table>, locale: &'a Locale, language: &'a Language, ) -> Parser<'a>
pub fn set_lexer_mode(&mut self, mode: LexerMode)
pub fn set_locale(&mut self, locale: &'a Locale)
pub fn set_language(&mut self, language: &'a Language)
pub fn set_worksheets_and_names( &mut self, worksheets: Vec<String>, defined_names: Vec<DefinedNameS>, )
pub fn parse(&mut self, formula: &str, context: &CellReferenceRC) -> Node
Sourcepub fn parse_at_cursor(
&mut self,
formula: &str,
cursor: usize,
context: &CellReferenceRC,
) -> CompletionContext
pub fn parse_at_cursor( &mut self, formula: &str, cursor: usize, context: &CellReferenceRC, ) -> CompletionContext
Parses formula up to cursor (a char offset) and reports what the
grammar would accept at that position, so callers can offer completions.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Parser<'a>
impl<'a> RefUnwindSafe for Parser<'a>
impl<'a> Send for Parser<'a>
impl<'a> Sync for Parser<'a>
impl<'a> Unpin for Parser<'a>
impl<'a> UnsafeUnpin for Parser<'a>
impl<'a> UnwindSafe for Parser<'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