Struct syn::VisRestricted
source · pub struct VisRestricted {
pub pub_token: Pub,
pub paren_token: Paren,
pub in_token: Option<In>,
pub path: Box<Path>,
}
Expand description
A visibility level restricted to some path: pub(self)
or
pub(super)
or pub(crate)
or pub(in some::module)
.
This type is available only if Syn is built with the "derive"
or
"full"
feature.
Fields§
§pub_token: Pub
§paren_token: Paren
§in_token: Option<In>
§path: Box<Path>
Trait Implementations§
source§impl Clone for VisRestricted
impl Clone for VisRestricted
source§impl Debug for VisRestricted
impl Debug for VisRestricted
source§impl From<VisRestricted> for Visibility
impl From<VisRestricted> for Visibility
source§fn from(e: VisRestricted) -> Visibility
fn from(e: VisRestricted) -> Visibility
Converts to this type from the input type.