Struct OptimizedCompiledPattern
pub struct OptimizedCompiledPattern { /* private fields */ }Expand description
Optimized compiled pattern with memoization support
Implementations§
§impl OptimizedCompiledPattern
impl OptimizedCompiledPattern
pub fn new(pattern: &str) -> OptimizedCompiledPattern
pub fn new(pattern: &str) -> OptimizedCompiledPattern
Compile a topic pattern into optimized segments
pub fn matches(&self, topic: &str) -> bool
pub fn matches(&self, topic: &str) -> bool
Check if this pattern matches a given topic using iterative BFS
pub fn original_pattern(&self) -> &str
pub fn original_pattern(&self) -> &str
Get the original pattern string
pub fn segments(&self) -> &[OptimizedPatternSegment]
pub fn segments(&self) -> &[OptimizedPatternSegment]
Get pattern segments
Trait Implementations§
§impl Clone for OptimizedCompiledPattern
impl Clone for OptimizedCompiledPattern
§fn clone(&self) -> OptimizedCompiledPattern
fn clone(&self) -> OptimizedCompiledPattern
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 moreAuto Trait Implementations§
impl Freeze for OptimizedCompiledPattern
impl RefUnwindSafe for OptimizedCompiledPattern
impl Send for OptimizedCompiledPattern
impl Sync for OptimizedCompiledPattern
impl Unpin for OptimizedCompiledPattern
impl UnwindSafe for OptimizedCompiledPattern
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