Crates.io | gtmpl_value |
lib.rs | gtmpl_value |
version | 0.5.1 |
source | src |
created_at | 2017-11-14 07:35:30.721023 |
updated_at | 2021-06-07 07:30:02.171651 |
description | Internal value format for gtmpl-rust |
homepage | |
repository | https://github.com/fiji-flo/gtmpl_value |
max_upload_size | |
id | 39286 |
size | 23,535 |
The internal value type for gmtpl-rust
[dependencies]
gtmpl_value = "0.5"
gtmpl_value
is a basic implementation for internal values within
gtmpl-rust
. It is used as to represent values parsed from
the template and from the context.
The From
trait is
implemented for:
String, &str
u64, u32, …, i64, i32, …, f64, f32
bool
Vec<Value>, &[Value]
HashMap<String, Value>
gtmpl_derive
provides a custom
derive
for structs.
extern crate gtmpl_value;
use gtmpl_value::Value;
fn main() {
let v: Value = "something".into();
println!("{}", v);
}