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

  • All methods must have &self or &mut self receiver
  • Methods cannot be async
  • Methods cannot have generic parameters
  • Generic type parameters on the trait itself are allowed