Crates.io | visible |
lib.rs | visible |
version | 0.0.1 |
source | src |
created_at | 2021-04-17 00:41:57.357501 |
updated_at | 2021-04-17 00:41:57.357501 |
description | Attributes to override the visibility of items. |
homepage | https://github.com/davidli2010/visible |
repository | https://github.com/davidli2010/visible.git |
max_upload_size | |
id | 385566 |
size | 16,416 |
Attributes to override the visibility of items.
#[visible::StructFields(pub(crate))]
pub struct Test {
pub a: i32,
pub b: i64,
}
The struct Test
will be rewritten as below:
pub struct Test {
pub(crate) a: i32,
pub(crate) b: i64,
}
Dual-licensed to be compatible with the Rust project.
Licensed under the Apache License, Version 2.0 http://www.apache.org/licenses/LICENSE-2.0 or the MIT license http://opensource.org/licenses/MIT, at your option. This file may not be copied, modified, or distributed except according to those terms.
Unless you explicitly state otherwise, any contribution intentionally submitted
for inclusion in visible
by you, shall be licensed as Apache-2.0 and MIT, without any additional
terms or conditions.