pub type TrimStringlet<const SIZE: usize = 16> = StringletBase<Trim, SIZE>;Expand description
Trimmed length kind of stringlet, which optionally trims one last byte, useful for codes with minimal length variation like ISO 639. This is achieved by tagging an unused last byte with a UTF-8 niche. The length gets calculated branchlessly with very few ops.
This is also produced by stringlet!(…) with a kind specifier of trim or t.
Aliased Type§
pub struct TrimStringlet<const SIZE: usize = 16> { /* private fields */ }