lazing

Crates.iolazing
lib.rslazing
version0.1.1
sourcesrc
created_at2020-03-28 12:48:16.303576
updated_at2020-03-29 08:13:02.967189
descriptionA macro like lazy_static can initialize static variables.
homepagehttps://github.com/ywxt/lazing
repositoryhttps://github.com/ywxt/lazing
max_upload_size
id223792
size7,276
云水 (ywxt)

documentation

https://docs.rs/lazing

README

Lazing

A macro like lazy_static can initialize static variables.

Usage

use std::ops::Deref;
#[lazy]
static NAME: String = "Hello".to_owned();

fn main() {
    println!("{}",NAME.deref());
}
 
Commit count: 5

cargo fmt