duat_core::text

Trait RegexPattern

Source
pub trait RegexPattern: InnerRegexPattern {
    type Match: 'static;

    // Required method
    fn get_match(points: (Point, Point), pattern: PatternID) -> Self::Match;
}

Required Associated Types§

Source

type Match: 'static

Required Methods§

Source

fn get_match(points: (Point, Point), pattern: PatternID) -> Self::Match

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.

Implementations on Foreign Types§

Source§

impl RegexPattern for &str

Source§

type Match = (Point, Point)

Source§

fn get_match(points: (Point, Point), _pattern: PatternID) -> Self::Match

Source§

impl RegexPattern for &String

Source§

type Match = (Point, Point)

Source§

fn get_match(points: (Point, Point), _pattern: PatternID) -> Self::Match

Source§

impl RegexPattern for &[&'static str]

Source§

type Match = (Point, Point, usize)

Source§

fn get_match(points: (Point, Point), pattern: PatternID) -> Self::Match

Source§

impl RegexPattern for char

Source§

type Match = (Point, Point)

Source§

fn get_match(points: (Point, Point), _pattern: PatternID) -> Self::Match

Source§

impl RegexPattern for String

Source§

type Match = (Point, Point)

Source§

fn get_match(points: (Point, Point), _pattern: PatternID) -> Self::Match

Source§

impl<const N: usize> RegexPattern for [&'static str; N]

Source§

type Match = (Point, Point, usize)

Source§

fn get_match(points: (Point, Point), pattern: PatternID) -> Self::Match

Implementors§