Trait konst::string::Pattern

source ·
pub trait Pattern<'a>: HasTypeWitness<PatternInput<'a, Self>> + Copy + Sized { }
Expand description

A string pattern.

Types that implement this trait can be used to search into a string.

This trait can only be implemented in the konst crate.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<'a> Pattern<'a> for &'a str

source§

impl<'a> Pattern<'a> for char

Implementors§