pub trait StringManipulation {
// Required methods
fn match_regex(&self, regex: &Primitive) -> Self;
fn is_match(&self, regex: &Primitive) -> Self;
fn replace(&self, regex: &Primitive, new_value: &Primitive) -> Self;
fn replace_all(&self, regex: &Primitive, new_value: &Primitive) -> Self;
fn to_upper(&self) -> Self;
fn to_lower(&self) -> Self;
fn capitalize(&self) -> Self;
}
Required Methods§
fn match_regex(&self, regex: &Primitive) -> Self
fn is_match(&self, regex: &Primitive) -> Self
fn replace(&self, regex: &Primitive, new_value: &Primitive) -> Self
fn replace_all(&self, regex: &Primitive, new_value: &Primitive) -> Self
fn to_upper(&self) -> Self
fn to_lower(&self) -> Self
fn capitalize(&self) -> Self
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.