Struct syn::ForeignItemStatic [−][src]
pub struct ForeignItemStatic { 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 semi_token: Semi, }
A foreign static item in an extern
block: static ext: u8
.
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>
semi_token: Semi
Trait Implementations
impl Clone for ForeignItemStatic
[src]
impl Clone for ForeignItemStatic
[src]fn clone(&self) -> Self
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl From<ForeignItemStatic> for ForeignItem
[src]
impl From<ForeignItemStatic> for ForeignItem
[src]fn from(e: ForeignItemStatic) -> ForeignItem
[src]
impl Hash for ForeignItemStatic
[src]
impl Hash for ForeignItemStatic
[src]impl Parse for ForeignItemStatic
[src]
impl Parse for ForeignItemStatic
[src]fn parse(input: ParseStream<'_>) -> Result<Self>
[src]
impl PartialEq<ForeignItemStatic> for ForeignItemStatic
[src]
impl PartialEq<ForeignItemStatic> for ForeignItemStatic
[src]impl ToTokens for ForeignItemStatic
[src]
impl ToTokens for ForeignItemStatic
[src]