pub struct CompiledLongPatternV1 { /* private fields */ }Expand description
Checked pattern with bounded transformed atoms and mandatory gram hints.
Implementations§
Source§impl CompiledLongPatternV1
impl CompiledLongPatternV1
Sourcepub fn compile(
operator: LongPatternOperatorV1,
declared_profile: LongPatternProfileV1,
source: &str,
) -> Result<Self, LongPatternErrorV1>
pub fn compile( operator: LongPatternOperatorV1, declared_profile: LongPatternProfileV1, source: &str, ) -> Result<Self, LongPatternErrorV1>
Compiles one bounded literal or wildcard pattern.
Sourcepub fn compile_bounded(
operator: LongPatternOperatorV1,
declared_profile: LongPatternProfileV1,
source: &str,
bounds: LongPatternBoundsV1,
) -> Result<Self, LongPatternErrorV1>
pub fn compile_bounded( operator: LongPatternOperatorV1, declared_profile: LongPatternProfileV1, source: &str, bounds: LongPatternBoundsV1, ) -> Result<Self, LongPatternErrorV1>
Compiles against the exact immutable bounds declared by one provider.
Sourcepub const fn operator(&self) -> LongPatternOperatorV1
pub const fn operator(&self) -> LongPatternOperatorV1
Exact operator selected by the compiled query.
Sourcepub const fn profile(&self) -> LongPatternProfileV1
pub const fn profile(&self) -> LongPatternProfileV1
Effective matching profile.
Sourcepub fn mandatory_grams(&self) -> &[[u8; 3]]
pub fn mandatory_grams(&self) -> &[[u8; 3]]
Ordered distinct mandatory literal grams. Empty means bounded provider scan.
Sourcepub fn matches_matched(&self, matched: &str) -> bool
pub fn matches_matched(&self, matched: &str) -> bool
Verifies one already-profiled retained value exactly.
Sourcepub fn matches_source(&self, source: &str) -> bool
pub fn matches_source(&self, source: &str) -> bool
Applies the effective profile and verifies one source value.
Trait Implementations§
Source§impl Clone for CompiledLongPatternV1
impl Clone for CompiledLongPatternV1
Source§impl Debug for CompiledLongPatternV1
impl Debug for CompiledLongPatternV1
impl Eq for CompiledLongPatternV1
Source§impl PartialEq for CompiledLongPatternV1
impl PartialEq for CompiledLongPatternV1
impl StructuralPartialEq for CompiledLongPatternV1
Auto Trait Implementations§
impl Freeze for CompiledLongPatternV1
impl RefUnwindSafe for CompiledLongPatternV1
impl Send for CompiledLongPatternV1
impl Sync for CompiledLongPatternV1
impl Unpin for CompiledLongPatternV1
impl UnsafeUnpin for CompiledLongPatternV1
impl UnwindSafe for CompiledLongPatternV1
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