Skip to main content

Mojo module

value

Defines core value traits.

These are Mojo built-ins, so you don't need to import them.

Aliases

ExplicitlyCopyable

alias ExplicitlyCopyable = Copyable

Deprecated: Use Copyable or ImplicitlyCopyable instead. Copyable on its own no longer implies implicit copyability.

Traits

  • Copyable: The Copyable trait denotes a type whose value can be explicitly copied.
  • Defaultable: The Defaultable trait describes a type with a default constructor.
  • ImplicitlyCopyable: A marker trait to permit compiler to insert implicit calls to __copyinit__ in order to make a copy of the object when needed.
  • Movable: The Movable trait denotes a type whose value can be moved.

Was this page helpful?