pub trait Regex {
type Haystack<'h>;
type CaptureLocations: CaptureLocations;
// Required methods
fn capture_locations(&self) -> Self::CaptureLocations;
fn captures_read(
&self,
locs: &mut Self::CaptureLocations,
haystack: Self::Haystack<'_>,
) -> Option<(usize, usize)>;
}
Required Associated Types§
type Haystack<'h>
type CaptureLocations: CaptureLocations
Required Methods§
fn capture_locations(&self) -> Self::CaptureLocations
fn captures_read( &self, locs: &mut Self::CaptureLocations, haystack: Self::Haystack<'_>, ) -> Option<(usize, usize)>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.