Struct CompiledPattern
pub struct CompiledPattern { /* private fields */ }Expand description
Pre-compiled pattern for efficient matching
Implementations§
§impl CompiledPattern
impl CompiledPattern
pub fn new(pattern: &str) -> CompiledPattern
pub fn new(pattern: &str) -> CompiledPattern
Compile a topic pattern into optimized segments
pub fn original_pattern(&self) -> &str
pub fn original_pattern(&self) -> &str
Get the original pattern string
Trait Implementations§
§impl Clone for CompiledPattern
impl Clone for CompiledPattern
§fn clone(&self) -> CompiledPattern
fn clone(&self) -> CompiledPattern
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 CompiledPattern
impl RefUnwindSafe for CompiledPattern
impl Send for CompiledPattern
impl Sync for CompiledPattern
impl Unpin for CompiledPattern
impl UnwindSafe for CompiledPattern
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