Struct devise::syn::ItemStatic
source · 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 if Syn is built with the "full"
feature.
Fields§
§attrs: Vec<Attribute, Global>
§vis: Visibility
§static_token: Static
§mutability: Option<Mut>
§ident: Ident
§colon_token: Colon
§ty: Box<Type, Global>
§eq_token: Eq
§expr: Box<Expr, Global>
§semi_token: Semi
Trait Implementations§
source§impl Clone for ItemStatic
impl Clone for ItemStatic
source§fn clone(&self) -> ItemStatic
fn clone(&self) -> ItemStatic
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ItemStatic
impl Debug for ItemStatic
source§impl From<ItemStatic> for Item
impl From<ItemStatic> for Item
source§fn from(e: ItemStatic) -> Item
fn from(e: ItemStatic) -> Item
Converts to this type from the input type.