Struct syn::ItemStatic [−][src]
pub struct ItemStatic { pub attrs: Vec<Attribute>, pub vis: Visibility, pub static_token: Static, pub mutability: Option<Mut>, pub ident: Ident, pub colon_token: Colon, pub ty: Box<Type>, pub eq_token: Eq, pub expr: Box<Expr>, pub semi_token: Semi, }
This is supported on crate feature
full
only.A static item: static BIKE: Shed = Shed(42)
.
This type is available only if Syn is built with the "full"
feature.
Fields
attrs: Vec<Attribute>
vis: Visibility
static_token: Static
mutability: Option<Mut>
ident: Ident
colon_token: Colon
ty: Box<Type>
eq_token: Eq
expr: Box<Expr>
semi_token: Semi
Trait Implementations
impl Clone for ItemStatic
[src]
impl Clone for ItemStatic
[src]This is supported on crate feature
clone-impls
only.fn clone(&self) -> Self
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for ItemStatic
[src]
impl Debug for ItemStatic
[src]This is supported on crate feature
extra-traits
only.impl Eq for ItemStatic
[src]
impl Eq for ItemStatic
[src]This is supported on crate feature
extra-traits
only.impl From<ItemStatic> for Item
[src]
impl From<ItemStatic> for Item
[src]fn from(e: ItemStatic) -> Item
[src]
impl Hash for ItemStatic
[src]
impl Hash for ItemStatic
[src]This is supported on crate feature
extra-traits
only.impl Parse for ItemStatic
[src]
impl Parse for ItemStatic
[src]This is supported on crate feature
parsing
only.fn parse(input: ParseStream<'_>) -> Result<Self>
[src]
impl PartialEq<ItemStatic> for ItemStatic
[src]
impl PartialEq<ItemStatic> for ItemStatic
[src]This is supported on crate feature
extra-traits
only.impl ToTokens for ItemStatic
[src]
impl ToTokens for ItemStatic
[src]This is supported on crate feature
printing
only.fn to_tokens(&self, tokens: &mut TokenStream)
[src]
pub fn to_token_stream(&self) -> TokenStream
[src]
pub fn into_token_stream(self) -> TokenStream
[src]
Auto Trait Implementations
impl RefUnwindSafe for ItemStatic
impl RefUnwindSafe for ItemStatic
impl !Send for ItemStatic
impl !Send for ItemStatic
impl !Sync for ItemStatic
impl !Sync for ItemStatic
impl Unpin for ItemStatic
impl Unpin for ItemStatic
impl UnwindSafe for ItemStatic
impl UnwindSafe for ItemStatic