Struct beans::regex::CompiledRegex
source · pub struct CompiledRegex { /* private fields */ }Expand description
Summary
CompiledRegex represents a regex that has already been processed. Since it is not supposed to be built
directly, there is no way to do so. Instead, use the RegexBuilder.
Keep in mind that the compilation time might be more expensive than matching time, especially if
you match short inputs against a lot of regex, so you should always reuse a compiled regex when possible.
To match a regex against a given input, do regex.find(input).
Method
find: match against a given input
Implementations§
Trait Implementations§
source§impl Debug for CompiledRegex
impl Debug for CompiledRegex
source§impl<'de> Deserialize<'de> for CompiledRegex
impl<'de> Deserialize<'de> for CompiledRegex
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more