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
: TheDefaultable
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?
Thank you! We'll create more content like this.
Thank you for helping us improve!