6 stable releases

new 2.0.1 Dec 15, 2024
1.0.3 Dec 15, 2024
1.0.2 Nov 23, 2024
1.0.1 Oct 14, 2024

#1048 in Encoding

Download history 313/week @ 2024-10-14 3/week @ 2024-11-04 116/week @ 2024-11-18 31/week @ 2024-11-25 8/week @ 2024-12-02 160/week @ 2024-12-09

315 downloads per month
Used in huski

MIT license

25KB
505 lines

huski-lib

Facility for working with ASCII table and its views into it. Lib component of huski.

See also huski-lib-core.

use huski_lib_core::ranges::Ranges;
use huski_lib::acquire;

let rs = acquire(&[Ranges::Capital,Ranges::Small]);
assert_eq!('A', rs[0].code() as char);
assert_eq!('z', rs[51].code() as char);
use huski_lib_core::ranges::Ranges;
use huski_lib::acquire_apart;

let rs = acquire_apart(&[Ranges::Capital,Ranges::Small]);
assert_eq!('A', rs[0][0].code() as char);
assert_eq!('z', rs[1][25].code() as char);
use huski_lib_core::ranges::LETTERS;
use huski_lib::codes;

let cs = codes(&LETTERS);
assert_eq!(52, cs.len());
assert_eq!('A', cs[0].code() as char);
assert_eq!('z', cs[51].code() as char);

lib.rs:

American Standard Code for Information Interchange table aide library.

Dependencies