Crates.io | huski-lib |
lib.rs | huski-lib |
version | 1.0.2 |
source | src |
created_at | 2024-10-14 19:17:32.505323 |
updated_at | 2024-11-23 21:17:21.887219 |
description | ASCII table aide library. |
homepage | https://github.com/bravequickcleverfibreyarn/ascii-aide/tree/main/huski-lib |
repository | https://github.com/bravequickcleverfibreyarn/ascii-aide/tree/main/huski-lib |
max_upload_size | |
id | 1408575 |
size | 7,761 |
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, Ranges};
use huski_lib::acquire;
let rs = acquire(Ranges::Capital);
assert_eq!('A', rs[0].code() as char);
assert_eq!('Z', rs[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);