pub type SmallString = CompactString;Expand description
Optimized string type for small strings (≤24 bytes stored inline)
Uses CompactString which stores strings up to 24 bytes inline without heap allocation.
This significantly reduces allocations for common short strings like language codes,
author names, category terms, and other metadata fields.
CompactString implements Deref<Target=str>, so it can be used transparently as a string.
§Examples
use feedparser_rs::types::SmallString;
let s: SmallString = "en-US".into();
assert_eq!(s.as_str(), "en-US");
assert_eq!(s.len(), 5); // Stored inline, no heap allocationAliased Type§
pub struct SmallString(/* private fields */);