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 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

Performs the conversion.

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

Performs the conversion.

Performs the conversion.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

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.