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 Crateimpl Clone for Crate[src]
impl Clone for Cratefn clone(&self) -> Crate[src]
fn clone(&self) -> CrateReturns 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 Crateimpl ToTokens for Crate[src]
impl ToTokens for Cratefn to_tokens(&self, tokens: &mut Tokens)[src]
fn to_tokens(&self, tokens: &mut Tokens)Write self to the given Tokens. Read more
fn into_tokens(self) -> Tokens[src]
fn into_tokens(self) -> TokensConvert self directly into a Tokens object. Read more
impl Synom for Crate[src]
impl Synom for Cratefn 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 Crateimpl From<Crate> for Ident[src]
impl From<Crate> for Ident