Skip to content

Glossary: Data Structures and Algorithms in Rust

Method

Also written: methods, impl

A function that belongs to a type, defined in an impl block and called with a dot. &self methods only read, and &mut self methods change the value.

Where the book teaches it

Related terms

StructGeneric