#structure #cloud #data-structures #key-value-store #reference #data-management #data

nightly cloudr

A library that offers an abstract data structure for storing and managing values without moving them. It provides efficient key-value insertion, retrieval, and removal operations, allowing you to conveniently handle your data. With its simplicity and ease of use, Cloudr is designed to simplify data storage in your Rust projects. Explore the capabilities of Cloudr and streamline your data management tasks.

5 stable releases

1.3.0 Jul 17, 2023
1.2.4 Jul 17, 2023

#2003 in Database interfaces

36 downloads per month

MIT license

40KB
475 lines

Cloudr 🌤️

Cloudr is a Rust library that provides an abstract data structure for storing values without moving them. It offers a flexible and convenient way to store and access data in a cloud-like structure.

Features ✨

  • Store values without moving them 📦
  • Insert, retrieve, and remove values based on keys 🔑
  • Check for the existence of keys or values ✅
  • Iterate over key-value pairs 🔄
  • Combine multiple instances of the data cloud 🌐
  • Convert into an owned FxHashMap 🔄
  • Iteration and mapping utilities 🚀

Installation 🚀

Add the following line to your Cargo.toml file:

[dependencies]
cloudr = "0.1.0"

Usage 🛠️

Here's a simple example demonstrating the basic usage of the DataCloud:

use cloudr::DataCloud;

fn main() {
    let data: DataCloud<String, i32> = DataCloud::new();
    
    data.insert("x".to_string(), &42);
    data.insert("y".to_string(), &123);
    
    if let Some(value) = data.get(&"x".to_string()) {
        println!("Value of x: {}", value);
    }
    
    data.remove(&"y".to_string());
    
    println!("Data cloud: {}", data);
}

For more detailed examples and documentation, please refer to the API documentation. 📚

Contributing 🤝

Contributions are welcome! If you have any ideas, suggestions, or bug reports, please open an issue or submit a pull request. ❤️

License 📝

This project is licensed under the MIT license. 📜

Dependencies

~135KB