pub struct Visibility<T = TokenStream> {
pub pub: Pub,
pub parentheses: Option<Parentheses<T>>,
}Expand description
Visibility:
pub ( T )?
Fields§
§pub: Pub§parentheses: Option<Parentheses<T>>Trait Implementations§
Source§impl<T: Clone> Clone for Visibility<T>
impl<T: Clone> Clone for Visibility<T>
Source§fn clone(&self) -> Visibility<T>
fn clone(&self) -> Visibility<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl IntoTokens for Visibility
impl IntoTokens for Visibility
Source§fn into_tokens(self, root: &TokenStream, tokens: &mut impl Extend<TokenTree>)
fn into_tokens(self, root: &TokenStream, tokens: &mut impl Extend<TokenTree>)
Source§fn collect_tokens<T>(self, root: &TokenStream) -> T
fn collect_tokens<T>(self, root: &TokenStream) -> T
Convenience methods to emit
self’s tokens into a new T.Source§impl<T> PeekFrom for Visibility<T>
impl<T> PeekFrom for Visibility<T>
Auto Trait Implementations§
impl<T> Freeze for Visibility<T>where
T: Freeze,
impl<T> RefUnwindSafe for Visibility<T>where
T: RefUnwindSafe,
impl<T = TokenStream> !Send for Visibility<T>
impl<T = TokenStream> !Sync for Visibility<T>
impl<T> Unpin for Visibility<T>where
T: Unpin,
impl<T> UnwindSafe for Visibility<T>where
T: UnwindSafe,
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