pub trait Wordlist {
// Required method
fn get_all() -> &'static [&'static str];
// Provided methods
fn get(index: usize) -> Result<&'static str, WordlistError> { ... }
fn get_index(word: &str) -> Result<usize, WordlistError> { ... }
}
Expand description
The Wordlist trait that every language’s wordlist must implement.
Required Methods§
Provided Methods§
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.