6 stable releases

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

#1152 in Encoding


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