Struct devise::syn::ItemStatic [−][src]
pub struct ItemStatic {
pub attrs: Vec<Attribute, Global>,
pub vis: Visibility,
pub static_token: Static,
pub mutability: Option<Mut>,
pub ident: Ident,
pub colon_token: Colon,
pub ty: Box<Type, Global>,
pub eq_token: Eq,
pub expr: Box<Expr, Global>,
pub semi_token: Semi,
}Expand description
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, Global>vis: Visibilitystatic_token: Staticmutability: Option<Mut>ident: Identcolon_token: Colonty: Box<Type, Global>eq_token: Eqexpr: Box<Expr, Global>semi_token: SemiTrait Implementations
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for ItemStaticimpl !Send for ItemStaticimpl !Sync for ItemStaticimpl Unpin for ItemStaticimpl UnwindSafe for ItemStaticBlanket Implementations
Mutably borrows from an owned value. Read more
Returns a Span covering the complete contents of this syntax tree
node, or Span::call_site() if this node is empty. Read more