trait
RepresentableCollectionElement
The RepresentableCollectionElement trait denotes a trait composition of the CollectionElement
and Representable
traits.
This is useful to have as a named entity since Mojo does not
currently support anonymous trait compositions to constrain
on CollectionElement & Representable
in the parameter.
Implemented traits
AnyType
,
CollectionElement
,
Copyable
,
Movable
,
Representable
Methods
__copyinit__
__copyinit__(inout self: T, existing: T, /)
Create a new instance of the value by copying an existing one.
Args:
- existing (
T
): The value to copy.
__moveinit__
__moveinit__(inout self: T, owned existing: T, /)
Create a new instance of the value by moving the value of another.
Args:
- existing (
T
): The value to move.
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?