jsonstein@masto.deoan.org ("Jeff Sonstein") wrote:
oh Lord, Phil Karlton was indeed an optimist… (from “5.3 Method Syntax”):
“The &self is actually short for self: &Self. Within an impl block, the type Self is an alias for the type that the impl block is for. Methods must have a parameter named self of type Self for their first parameter, so Rust lets you abbreviate this with only the name self in the first parameter spot.”