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.
Glossary: Data Structures and Algorithms in Rust
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.