Struct ink_lang_ir::InkTraitMessage
source · [−]pub struct InkTraitMessage<'a> { /* private fields */ }
Expand description
A checked ink! message of an ink! trait definition.
Implementations
sourceimpl<'a> InkTraitMessage<'a>
impl<'a> InkTraitMessage<'a>
sourcepub fn receiver(&self) -> Receiver
pub fn receiver(&self) -> Receiver
Returns the self
receiver of the ink! trait message.
Returns Ref
for &self
messages and RefMut
for &mut self
messages.
sourcepub 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;
Returns an iterator over the inputs of the ink! trait message.
sourcepub fn local_id(&self) -> u32
pub fn local_id(&self) -> u32
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
sourceimpl<'a> Clone for InkTraitMessage<'a>
impl<'a> Clone for InkTraitMessage<'a>
sourcefn clone(&self) -> InkTraitMessage<'a>
fn clone(&self) -> InkTraitMessage<'a>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<'a> Debug for InkTraitMessage<'a>
impl<'a> Debug for InkTraitMessage<'a>
sourceimpl<'a> From<&'a InkTraitMessage<'a>> for InputsIter<'a>
impl<'a> From<&'a InkTraitMessage<'a>> for InputsIter<'a>
sourcefn from(message: &'a InkTraitMessage<'_>) -> Self
fn from(message: &'a InkTraitMessage<'_>) -> Self
Converts to this type from the input type.
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more