File: no_std.rs

package info (click to toggle)
rust-unicode-truncate 2.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 176 kB
  • sloc: makefile: 4
file content (8 lines) | stat: -rw-r--r-- 141 bytes parent folder | download
1
2
3
4
5
6
7
8
#![no_std]

use unicode_truncate::UnicodeTruncateStr;

#[test]
fn main() {
    assert_eq!("你好吗".unicode_truncate(5), ("你好", 4));
}