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).
copyable
Defines Copyable and ImplicitlyCopyable, the traits for types whose value can be copied.
These are Mojo built-ins, so you don't need to import them.
Traits
-
Copyable: The Copyable trait denotes a type whose value can be explicitly copied. -
ImplicitlyCopyable: A marker trait to permit compiler to insert implicit calls to the copy constructor in order to make a copy of the object when needed.