Enum ink_lang_ir::InkTraitItem
source · [−]pub enum InkTraitItem<'a> {
Message(InkTraitMessage<'a>),
}
Expand description
An ink! item within an ink! trait definition.
Variants
Message(InkTraitMessage<'a>)
Implementations
sourceimpl<'a> InkTraitItem<'a>
impl<'a> InkTraitItem<'a>
sourcepub fn filter_map_message(self) -> Option<InkTraitMessage<'a>>
pub fn filter_map_message(self) -> Option<InkTraitMessage<'a>>
Returns Some
if the ink! trait item is a message.
Trait Implementations
sourceimpl<'a> Clone for InkTraitItem<'a>
impl<'a> Clone for InkTraitItem<'a>
sourcefn clone(&self) -> InkTraitItem<'a>
fn clone(&self) -> InkTraitItem<'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
Auto Trait Implementations
impl<'a> RefUnwindSafe for InkTraitItem<'a>
impl<'a> !Send for InkTraitItem<'a>
impl<'a> !Sync for InkTraitItem<'a>
impl<'a> Unpin for InkTraitItem<'a>
impl<'a> UnwindSafe for InkTraitItem<'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