Function Basics
Visibility Modifiers
Private
Default visibility, only within module
Public
Callable from any module
Public(package)
Only within the same package
Entry
Callable from transactions
Entry Functions
Entry functions can be called directly from transactions:Parameters
By Value, Reference, and Mutable Reference
Transaction Context
Return Values
Generics
Inline Functions
Best Practices
Use references when possible
Use references when possible
Validate inputs
Validate inputs
Related Topics
Move Overview
Learn Move basics
Move Modules
Module organization
Move Abilities
Type abilities