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(in some::module).
This type is available 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§fn clone(&self) -> VisRestricted
fn clone(&self) -> VisRestricted
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for VisRestricted
impl Debug for VisRestricted
impl Eq 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.
Source§impl Hash for VisRestricted
impl Hash for VisRestricted
Source§impl PartialEq for VisRestricted
impl PartialEq for VisRestricted
Source§fn eq(&self, other: &VisRestricted) -> bool
fn eq(&self, other: &VisRestricted) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for VisRestricted
Auto Trait Implementations§
impl !Send for VisRestricted
impl !Sync for VisRestricted
impl Freeze for VisRestricted
impl RefUnwindSafe for VisRestricted
impl Unpin for VisRestricted
impl UnsafeUnpin for VisRestricted
impl UnwindSafe for VisRestricted
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Spanned for Twhere
T: ToTokens,
impl<T> Spanned for Twhere
T: ToTokens,
Source§fn span(&self) -> Span
fn span(&self) -> Span
Returns a
Span covering the complete contents of this syntax tree
node, or Span::call_site() if this node is empty.