Enum ink_lang_ir::Item [−][src]
Expand description
An item in the root of the ink! module (ir::ItemMod
).
This is either an ink! specific item or a normal Rust item.
Variants
Ink(InkItem)
Tuple Fields
0: InkItem
The item is an ink! specific item.
Rust(Item)
Tuple Fields
0: Item
The item is a normal Rust item.
Implementations
Returns true
if self
is an ink! specific item.
Returns true
if self
is an normal Rust item.
Returns Some
if self
is an ink! specific item.
Otherwise, returns None
.
Returns Some
if self
is an ink! specific item.
Otherwise, returns None
.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Item
impl UnwindSafe for Item
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