Struct tree_sitter::ParseOptions
source · pub struct ParseOptions<'a> {
pub progress_callback: Option<&'a mut dyn FnMut(&ParseState) -> bool>,
}Fields§
§progress_callback: Option<&'a mut dyn FnMut(&ParseState) -> bool>Implementations§
source§impl<'a> ParseOptions<'a>
impl<'a> ParseOptions<'a>
pub fn new() -> Self
pub fn progress_callback<F: FnMut(&ParseState) -> bool>( self, callback: &'a mut F ) -> Self
Trait Implementations§
source§impl<'a> Default for ParseOptions<'a>
impl<'a> Default for ParseOptions<'a>
source§fn default() -> ParseOptions<'a>
fn default() -> ParseOptions<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for ParseOptions<'a>
impl<'a> !Send for ParseOptions<'a>
impl<'a> !Sync for ParseOptions<'a>
impl<'a> Unpin for ParseOptions<'a>
impl<'a> !UnwindSafe for ParseOptions<'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