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).

Fields§

§pub_token: Pub§paren_token: Paren§in_token: Option<In>§path: Box<Path>

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.