Struct syn::token::Crate
[−]
[src]
pub struct Crate(pub Span);
crate
Don't try to remember the name of this type -- use the Token!
macro instead.
Trait Implementations
impl Copy for Crate
[src]
impl Copy for Crate
impl Clone for Crate
[src]
impl Clone for Crate
fn clone(&self) -> Crate
[src]
fn clone(&self) -> Crate
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 Default for Crate
[src]
impl Default for Crate
impl ToTokens for Crate
[src]
impl ToTokens for Crate
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 Synom for Crate
[src]
impl Synom for Crate
fn parse(tokens: Cursor) -> PResult<Crate>
[src]
fn parse(tokens: Cursor) -> PResult<Crate>
fn description() -> Option<&'static str>
[src]
fn description() -> Option<&'static str>
A short name of the type being parsed. Read more
impl From<Span> for Crate
[src]
impl From<Span> for Crate
impl From<Crate> for Ident
[src]
impl From<Crate> for Ident