pub trait PatternReplace {
// Required methods
fn pattern_replace(
&self,
pattern: &str,
replacement: &str,
case_insensitive: bool
) -> Self
where Self: Sized;
fn pattern_replace_result(
&self,
pattern: &str,
replacement: &str,
case_insensitive: bool
) -> Result<Self, Error>
where Self: Sized;
}
Optional regex-enabledd replace method that will return None if the regex fails
Simple regex-enabledd replace method that will return the same string if the regex fails
Optional regex-enabledd replace method that will return None if the regex fails
Simple regex-enabledd replace method that will return the same string if the regex fails