pub struct PatternMatcher { /* private fields */ }Expand description
Pattern matcher for schema recommendations.
Implementations§
Source§impl PatternMatcher
impl PatternMatcher
pub fn new() -> Self
pub fn add_pattern(&mut self, name: impl Into<String>, schema_ids: Vec<String>)
pub fn match_pattern(&self, schema: &SymbolTable) -> Vec<String>
Trait Implementations§
Source§impl Clone for PatternMatcher
impl Clone for PatternMatcher
Source§fn clone(&self) -> PatternMatcher
fn clone(&self) -> PatternMatcher
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 moreSource§impl Debug for PatternMatcher
impl Debug for PatternMatcher
Auto Trait Implementations§
impl Freeze for PatternMatcher
impl RefUnwindSafe for PatternMatcher
impl Send for PatternMatcher
impl Sync for PatternMatcher
impl Unpin for PatternMatcher
impl UnwindSafe for PatternMatcher
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