Dare
A flexible Value
enum implementation in Rust, supporting various data types and providing type-safe operations.
Features
- Supports multiple data types: null, boolean, float, integer, string, array.
- Easy conversion with
From
trait implementations - Type-checking and accessor methods
Usage
use Value;
let number = from;
let string = from;
let array = from;
assert!;
assert_eq!;
println!; // Outputs: [1, 2]