Glossary coding Term Page

Method

A function that belongs to a type or instance

method #rust#struct#oop
Korean version

Aliases

instance method

Prerequisites

Related Concepts

Core Idea

A method is a function attached to a type or instance. Unlike a free function, its signature exposes which data it works on through self, &self, or &mut self.

Why It Matters Here

Mathbong uses methods to connect Rust struct design, state changes, and reference-aware signatures. They turn plain function reuse into the idea of data and behavior living together.

Posts Mentioning This Concept