Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

A method is a function that is attached to a type. To define methods for a type, we use the impl keyword onto the name of our type and define the functions inside.

There exist two types of methods: