Struct syn::Crate
[−]
[src]
pub struct Crate { pub shebang: Option<String>, pub attrs: Vec<Attribute>, pub items: Vec<Item>, }
Fields
shebang: Option<String>
attrs: Vec<Attribute>
items: Vec<Item>
Trait Implementations
impl ToTokens for Crate
[src]
impl Debug for Crate
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Clone for Crate
[src]
fn clone(&self) -> Crate
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Eq for Crate
[src]
impl PartialEq for Crate
[src]
fn eq(&self, __arg_0: &Crate) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Crate) -> bool
[src]
This method tests for !=
.