Struct ink_lang_ir::InkTraitMessage [−][src]
pub struct InkTraitMessage<'a> { /* fields omitted */ }
Expand description
A checked ink! message of an ink! trait definition.
Implementations
Returns the self
receiver of the ink! trait message.
Returns Ref
for &self
messages and RefMut
for &mut self
messages.
pub fn inputs(&self) -> InputsIter<'_>ⓘNotable traits for InputsIter<'a>impl<'a> Iterator for InputsIter<'a> type Item = &'a PatType;
pub fn inputs(&self) -> InputsIter<'_>ⓘNotable traits for InputsIter<'a>impl<'a> Iterator for InputsIter<'a> type Item = &'a PatType;
Notable traits for InputsIter<'a>
impl<'a> Iterator for InputsIter<'a> type Item = &'a PatType;
Returns an iterator over the inputs of the ink! trait message.
Returns a local ID unique to the ink! trait definition of the ink! trait message.
Note
It is a compile error if two ink! trait messages share the same local ID. Although the above scenario is very unlikely since the local ID is computed solely by the identifier of the ink! message.
Trait Implementations
Performs the conversion.
Auto Trait Implementations
impl<'a> RefUnwindSafe for InkTraitMessage<'a>
impl<'a> !Send for InkTraitMessage<'a>
impl<'a> !Sync for InkTraitMessage<'a>
impl<'a> Unpin for InkTraitMessage<'a>
impl<'a> UnwindSafe for InkTraitMessage<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more