Expand description
§use-text
Composable text primitives for RustUse.
use-text is the thin umbrella crate for the RustUse text workspace. Use it when you want the
common prelude and reexports from use-case, use-markdown, use-slug, use-token,
use-word, and use-text-line in one dependency.
§Reexports
use_caseuse_markdownuse_sluguse_text_lineuse_tokenuse_word
§Example
use use_text::prelude::{extract_headings, slugify, to_snake_case, word_count};
assert_eq!(to_snake_case("HelloWorld"), "hello_world");
assert_eq!(extract_headings("# Hello World")[0].anchor, "hello-world");
assert_eq!(slugify("Hello World"), "hello-world");
assert_eq!(word_count("Hello world"), 2);Re-exports§
pub use use_case;pub use use_markdown;pub use use_slug;pub use use_text_line;pub use use_token;pub use use_word;