Skip to main content
Log in

Mojo module

value

Defines core value traits.

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

Aliases

  • CollectionElement = Copyable & Movable:

Traits

  • Copyable: The Copyable trait denotes a type whose value can be copied.
  • Defaultable: The Defaultable trait describes a type with a default constructor.
  • ExplicitlyCopyable: The ExplicitlyCopyable trait denotes a type whose value can be copied explicitly.
  • Movable: The Movable trait denotes a type whose value can be moved.