Struct ink_ir::InkTraitDefinition
source · pub struct InkTraitDefinition { /* private fields */ }
Expand description
A checked ink! trait definition without its configuration.
Implementations§
source§impl InkTraitDefinition
impl InkTraitDefinition
sourcepub fn new(config: TokenStream2, input: TokenStream2) -> Result<Self>
pub fn new(config: TokenStream2, input: TokenStream2) -> Result<Self>
Returns Ok
if the input matches all requirements for an ink! trait definition.
source§impl InkTraitDefinition
impl InkTraitDefinition
sourcepub fn item(&self) -> &InkItemTrait
pub fn item(&self) -> &InkItemTrait
Returns the ink! trait item representing the ink! trait definition.
Trait Implementations§
source§impl Debug for InkTraitDefinition
impl Debug for InkTraitDefinition
source§impl PartialEq<InkTraitDefinition> for InkTraitDefinition
impl PartialEq<InkTraitDefinition> for InkTraitDefinition
source§fn eq(&self, other: &InkTraitDefinition) -> bool
fn eq(&self, other: &InkTraitDefinition) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.