Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[stdlib] Enhance Linked List #3942

Open
wants to merge 2 commits into
base: nightly
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions stdlib/src/builtin/value.mojo
Original file line number Diff line number Diff line change
Expand Up @@ -291,3 +291,51 @@ trait BoolableKeyElement(Boolable, KeyElement):
"""

pass


trait WritableCollectionElement(CollectionElement, Writable):
"""A trait that combines the CollectionElement and Writable traits.
This trait requires types to implement both CollectionElement and Writable
interfaces, allowing them to be used in collections and written to output.
"""

pass


trait EqualityComparableWritableCollectionElement(
WritableCollectionElement, EqualityComparable
):
"""A trait that combines the CollectionElement, Writable and
EqualityComparable traits.
This trait requires types to implement CollectionElement, Writable and
EqualityComparable interfaces, allowing them to be used in collections,
compared, and written to output.
"""

pass


trait WritableCollectionElementNew(CollectionElementNew, Writable):
"""A trait that combines the CollectionElement and Writable traits.
This trait requires types to implement both CollectionElement and Writable
interfaces, allowing them to be used in collections and written to output.
"""

pass


trait EqualityComparableWritableCollectionElementNew(
WritableCollectionElementNew, EqualityComparable
):
"""A trait that combines the CollectionElement, Writable and
EqualityComparable traits.
This trait requires types to implement CollectionElement, Writable and
EqualityComparable interfaces, allowing them to be used in collections,
compared, and written to output.
"""

pass
Loading
Loading