Skip to content

Small crate for Strings that should show a token when truncated in rust.

Notifications You must be signed in to change notification settings

Vassili-Dev/rust-truncatable

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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~~"));

About

Small crate for Strings that should show a token when truncated in rust.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages