Struct devise::syn::ItemMod [−][src]
pub struct ItemMod {
pub attrs: Vec<Attribute, Global>,
pub vis: Visibility,
pub mod_token: Mod,
pub ident: Ident,
pub content: Option<(Brace, Vec<Item, Global>)>,
pub semi: Option<Semi>,
}
Expand description
A module or module declaration: mod m
or mod m { ... }
.
This type is available if Syn is built with the "full"
feature.
Fields
attrs: Vec<Attribute, Global>
vis: Visibility
mod_token: Mod
ident: Ident
content: Option<(Brace, Vec<Item, Global>)>
semi: Option<Semi>
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for ItemMod
impl UnwindSafe for ItemMod
Blanket 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