{"id":16851894,"url":"https://github.com/cad97/mileage","last_synced_at":"2025-09-22T09:05:02.596Z","repository":{"id":57638601,"uuid":"198741558","full_name":"CAD97/mileage","owner":"CAD97","description":null,"archived":false,"fork":false,"pushed_at":"2023-09-15T19:19:50.000Z","size":1764,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-24T16:10:28.243Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CAD97.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-07-25T02:25:10.000Z","updated_at":"2023-09-15T19:19:54.000Z","dependencies_parsed_at":"2024-11-24T23:15:21.392Z","dependency_job_id":null,"html_url":"https://github.com/CAD97/mileage","commit_stats":{"total_commits":20,"total_committers":1,"mean_commits":20.0,"dds":0.0,"last_synced_commit":"fa2573bcacfc0adf87112df09d12c691369135b5"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CAD97%2Fmileage","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CAD97%2Fmileage/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CAD97%2Fmileage/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CAD97%2Fmileage/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CAD97","download_url":"https://codeload.github.com/CAD97/mileage/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244196784,"owners_count":20414370,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-13T13:34:00.831Z","updated_at":"2025-09-22T09:04:57.569Z","avatar_url":"https://github.com/CAD97.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mileage\n\nThis crate is deprecated, as there are better ways of accomplishing its contributions now.\n\n- `CharRange` is a simple range of codepoints, effectively `std::ops::RangeInclusive\u003cchar\u003e`.\n  The std ranges have supported iterating `char` for a long time now.\n- `CharSet` is a set of codepoints handled as a sorted vector of compact ranges.\n  `icu_collections` provides a `CodePointInversionList`.\n- `CharTrie` is a static set of codepoints optimized for wide codepoint coverage.\n  The simpler inversion list is usually sufficient.\n- `CharMap` is a mapping from (ranges of) codepoints to values.\n  `icu_collections` provides a `CodePointTrie` with map functionality.\n\n## Features\n\n- `set`: Adds the `CharSet` type.\n- `trie`: Adds the `CharTrie` type.\n- `map`: Adds the `CharMap` reference type.\n- `owned-set`: Adds the `CharSetBuf` type.\n- `new-trie`: Adds code generation support for `CharTrie`s.\n- `par-iter`: Adds implementations of `rayon::IntoParallelIterator`.\n\n## Example\n\n```rust\nfn main() {\n    use mileage::CharRange;\n    for ch in CharRange::from('a'..='z') {\n        // ch is each codepoint in lowercase ascii in sorted order\n        dbg!(ch);\n    }\n    for ch in CharRange::from(..) {\n        // ch is every valid char in sorted order\n        dbg!(ch);\n    }\n}\n```\n\n## Planned (eventually)\n\n- `CharMapRefMut`\n- `CharMapBuf`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcad97%2Fmileage","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcad97%2Fmileage","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcad97%2Fmileage/lists"}