Skip to content

Glossary: Rust Basics

Method

Also written: methods

A function that belongs to a type and is called with a dot after a value, like `order.push_str(...)`. Its first parameter is `self`.

Where the book teaches it

Related terms

implself / SelfAssociated function