Trait StringManipulation

Source
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§

Source

fn match_regex(&self, regex: &Primitive) -> Self

Source

fn is_match(&self, regex: &Primitive) -> Self

Source

fn replace(&self, regex: &Primitive, new_value: &Primitive) -> Self

Source

fn replace_all(&self, regex: &Primitive, new_value: &Primitive) -> Self

Source

fn to_upper(&self) -> Self

Source

fn to_lower(&self) -> Self

Source

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.

Implementors§