Skip to main content

validate_method

Function validate_method 

Source
fn validate_method(method: &TraitItemFn, trait_name: &Ident) -> Result<()>
Expand description

Validate a single trait method for ABI compatibility.

Rejects async methods, methods with generic type parameters, and methods that take self by value (only &self and &mut self are allowed). Static methods (no receiver) are permitted.