Struct ParserFactory
pub struct ParserFactory { /* private fields */ }
Implementations§
§impl ParserFactory
impl ParserFactory
pub fn new( tok_env: &Arc<dyn TokenizerEnv + Sync>, inference_caps: InferenceCapabilities, regexes: &[String], ) -> Result<ParserFactory, Error>
pub fn limits_mut(&mut self) -> &mut ParserLimits
pub fn limits(&self) -> &ParserLimits
pub fn tok_env(&self) -> &Arc<dyn TokenizerEnv + Sync>
pub fn quiet(&mut self) -> &mut ParserFactory
pub fn set_buffer_log_level(&mut self, level: u32) -> &mut ParserFactory
pub fn set_stderr_log_level(&mut self, level: u32) -> &mut ParserFactory
pub fn extra_lexemes(&self) -> Vec<String>
pub fn slicer(&self) -> Arc<SlicedBiasComputer>
pub fn post_process_parser(&self, parser: &mut TokenParser)
pub fn create_parser( &self, grammar: TopLevelGrammar, ) -> Result<TokenParser, Error>
pub fn create_parser_ext( &self, grammar: TopLevelGrammar, buffer_log_level: u32, ) -> Result<TokenParser, Error>
pub fn create_parser_ext2( &self, grammar: TopLevelGrammar, buffer_log_level: u32, stderr_log_level: u32, ) -> Result<TokenParser, Error>
pub fn create_parser_from_init_default( &self, init: GrammarInit, ) -> Result<TokenParser, Error>
pub fn create_parser_from_init( &self, init: GrammarInit, buffer_log_level: u32, stderr_log_level: u32, ) -> Result<TokenParser, Error>
Auto Trait Implementations§
impl !Freeze for ParserFactory
impl !RefUnwindSafe for ParserFactory
impl Send for ParserFactory
impl Sync for ParserFactory
impl Unpin for ParserFactory
impl !UnwindSafe for ParserFactory
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
§impl<T> Downcast for Twhere
T: AsAny + ?Sized,
impl<T> Downcast for Twhere
T: AsAny + ?Sized,
§fn downcast_ref<T>(&self) -> Option<&T>where
T: AsAny,
fn downcast_ref<T>(&self) -> Option<&T>where
T: AsAny,
Forward to the method defined on the type
Any
.§fn downcast_mut<T>(&mut self) -> Option<&mut T>where
T: AsAny,
fn downcast_mut<T>(&mut self) -> Option<&mut T>where
T: AsAny,
Forward to the method defined on the type
Any
.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more