module
value
Defines core value traits.
These are Mojo built-ins, so you don't need to import them.
Traits
-
Movable
: The Movable trait denotes a type whose value can be moved. -
Copyable
: The Copyable trait denotes a type whose value can be copied. -
ExplicitlyCopyable
: The ExplicitlyCopyable trait denotes a type whose value can be copied explicitly. -
Defaultable
: TheDefaultable
trait describes a type with a default constructor. -
CollectionElement
: The CollectionElement trait denotes a trait composition of theCopyable
andMovable
traits. -
StringableCollectionElement
: The StringableCollectionElement trait denotes a trait composition of theCollectionElement
andStringable
traits. -
ComparableCollectionElement
: This trait is a temporary solution to enable comparison of collection elements as utilized in theindex
andcount
methods of a list. This approach will be revised with the introduction of conditional trait conformances. -
RepresentableCollectionElement
: The RepresentableCollectionElement trait denotes a trait composition of theCollectionElement
andRepresentable
traits. -
BoolableCollectionElement
: The BoolableCollectionElement trait denotes a trait composition of theBoolable
andCollectionElement
traits. -
BoolableKeyElement
: The BoolableKeyElement trait denotes a trait composition of theBoolable
andKeyElement
traits.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!
If you'd like to share more information, please report an issue on GitHub
😔 What went wrong?