Trait Pattern

Source
pub trait Pattern: Sealed + Copy {
    // Required method
    fn rename(self, name: &str, with: &str) -> Option<String>;
}

Required Methods§

Source

fn rename(self, name: &str, with: &str) -> Option<String>

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.

Implementations on Foreign Types§

Source§

impl Pattern for &str

Source§

fn rename(self, name: &str, replacer: &str) -> Option<String>

Implementors§