ent 0.0.1

Abstract object entity for JSON, PyDict, & others
Documentation

Ent   Build Crate

Ent is an abstract object library. Using Rust's monomorphization, you can write zero cost interfaces across multiple object types including JSON and Python dictionaries. If you are interested in contributing to Ent, please do! We would welcome any help including additional object implementations.

Warning: Ent is in early development and depends on Rust nightly!

Getting Started

[dependencies]

# Specify supported implementations using feature keys:
#  - python
#  - json
ent = { version = "0.1", features = ["derive"] }

Examples

use ent::Ent;

fn get_name<E: Ent>(e: Ent) -> &str {
    e.as_str()
}

fn main() {
    let json: Value = serde_json::from_str(..).unwrap();
    println!(get_name(json))
}

License

Licensed under either of Apache License, Version 2.0 or MIT license at your option.

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in Ent by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.