Skip to main content

StrPattern

Trait StrPattern 

Source
pub trait StrPattern: Sealed { }
Expand description

A sealed pattern accepted by text query methods.

The supported pattern types are char, &str, and &String. External implementations are intentionally rejected so the crate can preserve query semantics across compatible releases.

use cheetah_string::StrPattern;

struct ExternalPattern;
impl StrPattern for ExternalPattern {}

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl StrPattern for &String

Source§

impl StrPattern for &str

Source§

impl StrPattern for char

Implementors§