| Crates.io | zdex |
| lib.rs | zdex |
| version | 0.3.1 |
| created_at | 2019-12-28 01:03:56.107015+00 |
| updated_at | 2019-12-29 18:04:32.662675+00 |
| description | Z-indexes bit-collections into a packed Vob |
| homepage | https://github.com/blakehawkins/zdex |
| repository | https://github.com/blakehawkins/zdex |
| max_upload_size | |
| id | 192839 |
| size | 11,816 |
Evaluate Z-order indexing for types, iterators, and tuples of BitCollections.
See also morton_encoding.
Here's a basic example using the built-in FromU8 BitCollection - see more
examples in the docs.
use zdex::*;
fn main() -> Result<(), std::io::Error> {
let v1: FromU8 = 0b0011.into();
let v2: FromU8 = 0b1111.into();
// Prints "Vob[01011111]".
println!("{:?}", (v1, v2).z_index()?);
Ok(())
}
BitCollectionsis_relevant and next_jump_in