For the complete Mojo documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /docs/manual/basics.md).
Value lifecycles
A Mojo value has a beginning and an end. Mojo creates and initializes the value before you use it, then destroys it when it's no longer needed.
Lifecycle methods define what happens at each stage. Use them to control how your types initialize their state, transfer values, and release resources.