#ascii #printable #utf-8

is_printable

Determine whether a given text-based value is printable

13 releases

0.1.1 Mar 18, 2025
0.1.0 Mar 18, 2025
0.0.11 Aug 11, 2024

#1810 in Text processing

Download history 39/week @ 2025-06-07 45/week @ 2025-06-14 5/week @ 2025-06-21 2/week @ 2025-07-12 3/week @ 2025-07-19 2/week @ 2025-08-16 7/week @ 2025-08-23

678 downloads per month

MIT/Apache

8KB
84 lines

is_printable

Determines whether a given text-based value is printable

Printable example

    use is_printable::IsPrintable;

    let hello = "hello";
    let is_printable = hello.is_printable();

    assert_eq!(is_printable, true);

Unprintable example

    use is_printable::IsPrintable;

    let bell = '\u{7}'
    let is_printable = bell.is_printable();

    assert_eq!(is_printable, false);

Dependencies

~0.1–8MB
~40K SLoC