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
Object Safety§
This trait is not object safe.