Skip to content

Attributes to override the visibility of items.

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

davidli2010/visible

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

visible

Repository Crate Documentation

License: Apache OR License: MIT

Attributes to override the visibility of items.

Example

#[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,
}

License

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.

Contribution

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.

About

Attributes to override the visibility of items.

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Packages

No packages published

Languages