Skip to main content

validate_trait

Function validate_trait 

Source
fn validate_trait(trait_item: &ItemTrait) -> Result<()>
Expand description

Validate that the trait meets requirements for ABI generation.

ยงConstraints

  • Instance methods use shared/mutable references or explicit borrowed-owner receivers
  • Methods cannot be async
  • Methods cannot have generic parameters
  • Generic type parameters on the trait itself are allowed