Struct syn::VisCrate
[−]
[src]
pub struct VisCrate { pub crate_token: Crate, }
A crate-level visibility: crate
.
This type is available if Syn is built with the "derive"
or
"full"
feature.
Fields
crate_token: Crate
Trait Implementations
impl ToTokens for VisCrate
[src]
impl ToTokens for VisCrate
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
Write self
to the given TokenStream
. Read more
fn into_token_stream(self) -> TokenStream
[src]
fn into_token_stream(self) -> TokenStream
Convert self
directly into a TokenStream
object. Read more
impl Clone for VisCrate
[src]
impl Clone for VisCrate
fn clone(&self) -> VisCrate
[src]
fn clone(&self) -> VisCrate
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl From<VisCrate> for Visibility
[src]
impl From<VisCrate> for Visibility
fn from(e: VisCrate) -> Visibility
[src]
fn from(e: VisCrate) -> Visibility
Performs the conversion.