Enum ink_lang_ir::ImplItem
source · [−]pub enum ImplItem {
Constructor(Constructor),
Message(Message),
Other(ImplItem),
}
Expand description
An item within an ink! implementation block.
Can be either
- an ink!
ir::Constructor
- an ink!
ir::Message
- or any other non-ink! item.
Note
Based on syn::ImplItem
with special variants for ink! impl
items.
Variants
Constructor(Constructor)
A #[ink(constructor)]
marked inherent function.
Message(Message)
A #[ink(message)]
marked method.
Other(ImplItem)
Any other implementation block item.
Implementations
Returns true
if the impl
block item is an ink! message.
Returns Some
if self
is an ink! message.
Otherwise, returns None
.
Returns true
if the impl
block item is an ink! message.
Returns Some
if self
is an ink! constructor.
Otherwise, returns None
.
Returns true
if the impl
block item is a non ink! specific item.
Returns Some
if self
is a not an ink! specific item.
Otherwise, returns None
.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ImplItem
impl UnwindSafe for ImplItem
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