pub trait PhoneticAlgorithm {
// Required method
fn encode(&self, text: &str) -> Result<String>;
// Provided method
fn sounds_like(&self, s1: &str, s2: &str) -> Result<bool> { ... }
}Expand description
Phonetic algorithms trait
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".