pub trait Sluggable {
// Required method
fn sluggable_source(&self) -> &str;
// Provided method
fn slug(&self) -> String { ... }
}Expand description
A reusable concern: derive a URL slug from a source string.
Required Methods§
Sourcefn sluggable_source(&self) -> &str
fn sluggable_source(&self) -> &str
The text a slug is derived from (e.g. a title).
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".