| Crates.io | lazing |
| lib.rs | lazing |
| version | 0.1.1 |
| created_at | 2020-03-28 12:48:16.303576+00 |
| updated_at | 2020-03-29 08:13:02.967189+00 |
| description | A macro like lazy_static can initialize static variables. |
| homepage | https://github.com/ywxt/lazing |
| repository | https://github.com/ywxt/lazing |
| max_upload_size | |
| id | 223792 |
| size | 7,276 |
A macro like lazy_static can initialize static variables.
use std::ops::Deref;
#[lazy]
static NAME: String = "Hello".to_owned();
fn main() {
println!("{}",NAME.deref());
}