#white-space #truncate #string

yanked truncate-on-white-space

Unicode-safely truncate a &str at the closest whitespace to a specified length

0.1.0 May 7, 2021

#19 in #truncate

Apache-2.0

5KB
72 lines

truncate white space

Truncate a string at a certain length, using the closest whitespace character.

Usage

use 

No runtime deps