Skip to content

Glossary: Rust Beyond the Basics

signature

Also written: method signature

A function's name, parameters and return type, without its body. The borrow checker uses a function's signature, not its body, to decide what a returned reference borrows from.

Where the book teaches it

Related terms

trait