pub struct Dialect { /* private fields */ }
Implementations§
source§impl Dialect
impl Dialect
pub fn new(root_segment_name: &'static str) -> Self
pub fn add( &mut self, iter: impl IntoIterator<Item = (Cow<'static, str>, DialectElementType)> + Clone )
pub fn lexer_matchers(&self) -> &[Box<dyn Matcher>]
pub fn set_lexer_matchers(&mut self, lexer_matchers: Vec<Box<dyn Matcher>>)
pub fn sets(&self, label: &str) -> HashSet<&'static str>
pub fn sets_mut(&mut self, label: &'static str) -> &mut HashSet<&'static str>
pub fn update_keywords_set_from_multiline_string( &mut self, set_label: &'static str, values: &'static str )
pub fn bracket_sets(&self, label: &str) -> HashSet<BracketPair>
pub fn bracket_sets_mut(&mut self, label: &str) -> &mut HashSet<BracketPair>
pub fn update_bracket_sets(&mut self, label: &str, pairs: Vec<BracketPair>)
pub fn ref(&self, name: &str) -> Box<dyn Matchable>
pub fn expand(&mut self)
pub fn root_segment_name(&self) -> &'static str
pub fn get_root_segment(&self) -> Box<dyn Matchable>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Dialect
impl !Send for Dialect
impl !Sync for Dialect
impl Unpin for Dialect
impl !UnwindSafe for Dialect
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