ellipse 0.1.0

Truncate and ellipse strings in a human-friendly way.
Documentation

ellipse

Travis CI Status crates.io Documentation

Truncate and ellipse strings in a human-friendly way. Uses unicode extended grapheme clusters.

Documentation

Example

use ellipse::Ellipse;

let input = "🇩🇪🇬🇧🇮🇹🇫🇷";
assert_eq!(&input.truncate_ellipse(2), "🇩🇪🇬🇧...");

License

Licensed under either of

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.