str_slug
generates url friendly slug
from the given string.
rust
pub struct StrSlug {
pub use_hash: bool,
pub use_full_hash: bool,
pub append_hash: bool,
pub hash_len: usize,
pub hash_separator: char,
pub separator: char,
pub remove_duplicate_separators: bool,
pub trim_separator_start: bool,
pub trim_separator_end: bool,
pub trim_separator_both: bool,
}
```rust let sentence = "quick brown fox jumps over the lazy dog"; let slug = str_slug::slug(sentence);
// quick-brown-fox-jumps-over-the-lazy-dog ```
with a hash
```rust let sentence = "quick brown fox jumps over the lazy dog"; let slug = strslug::slughash(sentence);
// quick-brown-fox-jumps-over-the-lazy-dog_ce2907 ```