truncatable 0.1.3

Small crate for truncatable strings
Documentation
  • Coverage
  • 100%
    7 out of 7 items documented1 out of 7 items with examples
  • Size
  • Source code size: 5.72 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.41 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 9s Average build duration of successful builds.
  • all releases: 9s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Vassili-Dev/rust-truncatable
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • Vassili-Dev

Truncatable

Truncatable is a small rust crate for Strings that should append a follower when truncated (eg, ellipsis).

Crates.io Build

Usage

use truncatable::Truncatable;
let to_truncate = Truncatable::from("Hello World!").truncator("~~".into());
assert_eq!(to_truncate.truncate(5), String::from("Hello~~"));