prefer-method Prefer methods when the first parameter establishes a receiver A function whose first parameter supplies the operation's canonical nominal owner hides that operation from member lookup. Instead, you SHOULD declare an inherent or extension method. Symmetric operations, constructors, decorated functions, and ambient declarations remain free functions. - Category: style - Level: warning - Fix: none - Scope: module Reported struct Counter { value: int32; } function increment(counter: &exclusive Counter): void { counter.value += 1; } Accepted struct Counter { value: int32; } extension of Counter { increment(&exclusive this): void { this.value += 1; } } language/linter/src/rules/style/prefermethod.rs:7