:sparkles: Valu3 :sparkles:

The Valu3 provides a flexible and powerful way to manipulate different types of data in your Rust projects. Whether you need to work with numbers, strings, arrays, objects, or datetime values, the Valu3 has you covered.

Features :carousel_horse:

Examples :space_invader:

Here are some examples of how to use the Valu3:

```rust,editable use value::{Array, DateTime, Number, Object, StringB, Value};

let stringvalue = "hello".tovalue(); let numbervalue = 42.tovalue(); let booleanvalue = Value::from(true); let nullvalue = Value::Null; let undefinedvalue = Value::Undefined; let mut datetimevalue = DateTime::from("2023-04-05T00:00:00Z").to_value();

stringvalue.asstring(); numbervalue.geti32(); asserteq!(booleanvalue, true); asserteq!(nullvalue, Value::Null); asserteq!(undefinedvalue, Value::Undefined); datetimevalue.adddays(1); ```

Converting to Value

You can also convert your own data types to a Value enum by implementing the to_value method. For example:

```rust,editable use value::{Array, DateTime, Number, Object, StringB, Value};

let array = Array::from(vec![Value::Number(Number::from(1)), Value::Number(Number::from(2))]).tovalue(); let object = Object::from(vec![("key".tostring(), Value::String(StringB::new("value".tostring())))]).tovalue(); let string = StringB::new("hello".tostring()).tovalue(); let number = Number::from(42).tovalue(); let boolean = true.tovalue(); let datetime = DateTime::from("2023-04-05T00:00:00Z").to_value(); ```

Getting Started

To start using the Valu3 in your Rust project, simply add the following line to your Cargo.toml file: toml [dependencies] value = "0.1"

Then, you can import the library in your code like this: rust use value::Value;

Contributing

If you find a bug or have a suggestion for a new feature, please open an issue on the GitHub repository.

If you would like to contribute to the project, please feel free to submit a pull request. Before submitting a pull request, please make sure that your code adheres to the project's style guidelines and passes all tests.

License

This project is licensed under the MIT License. See the LICENSE-APACHE or LICENSE-MIT file for more information.