| Crates.io | icentral-deltas |
| lib.rs | icentral-deltas |
| version | 0.1.0 |
| created_at | 2025-04-04 21:10:26.132738+00 |
| updated_at | 2025-04-04 21:10:26.132738+00 |
| description | A Rust crate for managing delta changes in datasets using delta mapping, providing efficient and dynamic operations for data updates. |
| homepage | |
| repository | |
| max_upload_size | |
| id | 1620764 |
| size | 55,618 |
icentral-deltas is a Rust crate that provides a powerful and flexible mechanism for managing delta changes in data structures using a concept of delta mapping. This library is highly suitable for applications requiring dynamic and efficient updates to datasets, leveraging memory-efficient designs through the use of MaybeIndexedMap.
DeltaMap.delegate_to_deltas, a macro designed to streamline interactions with delta-based data, allowing for concise code structures.DeltaMapA pivotal construct in icentral-deltas, DeltaMap is equipped with several methods:
empty_indexed, empty_mapped, and new for initializing DeltaMap objects with different presets.update, set_zero, set_one, allowing precise control over delta states.clear, len, get, and set offer direct interactions with map contents.Here is a brief illustration of how DeltaMap can be utilized:
use icentral_deltas::DeltaMap;
// Create a new `DeltaMap`
let mut delta_map = DeltaMap::new(10, "example_map");
delta_map.update(1, 2, 0.5);
let ratio = delta_map.ratio(1, 2);
println!("Computed ratio: {}", ratio);
Add this crate to your dependencies in Cargo.toml:
[dependencies]
icentral-deltas = "0.1.0"
Contributions are welcome! Feel free to open issues or submit pull requests.
This README.md file was generated by an AI model and may not be 100% accurate, however, it should be pretty good.
This crate is in the process of being translated from c++ to rust. Currently, it still needs exhaustive testing. It is likely there currently exist many glitches which need to be fixed before proper usage. This crate is based on the original icentral program developed by Fuad Jamor. Please see the following repository for details: https://github.com/fjamour/icentral.
For progress updates, see the workspacer rust project.