Struct ink_ir::InkTraitMessage

source ·
pub struct InkTraitMessage<'a> { /* private fields */ }
Expand description

A checked ink! message of an ink! trait definition.

Implementations§

Returns all non-ink! attributes.

Returns all ink! attributes.

Returns the original signature of the ink! message.

Returns the self receiver of the ink! trait message.

Returns Ref for &self messages and RefMut for &mut self messages.

Returns an iterator over the inputs of the ink! trait message.

Returns the return type of the ink! message if any.

Returns the Rust identifier of the ink! 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.

Returns the span of the ink! message.

Returns true if the ink! message may mutate the contract storage.

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.