A macro used to make struct's fields public
How to use it?
#[macro_use]
extern crate public;
#[make_public(crate)]
#[derive(Debug, Default)]
struct Foo {
a: i8,
b: char,
c: String,
}
the struct Foo
and its fields will be accessible in current crate globally.
欢迎star和使用。
Ext Link: https://github.com/yuchunzhou/public
1
共 0 条评论, 1 页
评论区
写评论还没有评论