Struct ink_lang_ir::ItemImpl [−][src]
pub struct ItemImpl { /* fields omitted */ }
Expand description
An ink! implementation block.
Note
- This can be either an inherent implementation block that implements some constructors, messages or internal functions for the storage struct; OR it can be a trait implementation for the storage struct.
- We try to support all fields that are supported by the underlying
syn
implementation forsyn::ItemImpl
even though they are not really required to represent ink!. This is done for consistency withsyn
.
Implementations
Returns all non-ink! specific attributes of the implementation block.
Returns the trait type path if this is a trait implementation block.
Returns None
if this is an inherent implementation block.
Returns the trait identifier if this is a trait implementation block.
Returns None
if this is an inherent implementation block.
Returns the namespace of the implementation block if any has been provided.
pub fn iter_messages(&self) -> IterMessages<'_>ⓘNotable traits for IterMessages<'a>impl<'a> Iterator for IterMessages<'a> type Item = CallableWithSelector<'a, Message>;
pub fn iter_messages(&self) -> IterMessages<'_>ⓘNotable traits for IterMessages<'a>impl<'a> Iterator for IterMessages<'a> type Item = CallableWithSelector<'a, Message>;
Notable traits for IterMessages<'a>
impl<'a> Iterator for IterMessages<'a> type Item = CallableWithSelector<'a, Message>;
Returns an iterator yielding the ink! messages of the implementation block.
pub fn iter_constructors(&self) -> IterConstructors<'_>ⓘNotable traits for IterConstructors<'a>impl<'a> Iterator for IterConstructors<'a> type Item = CallableWithSelector<'a, Constructor>;
pub fn iter_constructors(&self) -> IterConstructors<'_>ⓘNotable traits for IterConstructors<'a>impl<'a> Iterator for IterConstructors<'a> type Item = CallableWithSelector<'a, Constructor>;
Notable traits for IterConstructors<'a>
impl<'a> Iterator for IterConstructors<'a> type Item = CallableWithSelector<'a, Constructor>;
Returns an iterator yielding the ink! messages of the implementation block.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ItemImpl
impl UnwindSafe for ItemImpl
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