-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Add as_slice to parent #9871
Add as_slice to parent #9871
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, but you should probably accept the doc cleanup.
Co-authored-by: Alice Cecile <alice.i.cecile@gmail.com>
Done. |
Co-authored-by: Joseph <21144246+JoJoJet@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bikeshedding here, but get_slice
is consistent with get
, but perhaps as_slice
might be a better naming?
Agreed. Follows rust convention. |
# Objective - Make it possible to write APIs that require a type or homogenous storage for both `Children` & `Parent` that is agnostic to edge direction. ## Solution - Add a way to get the `Entity` from `Parent` as a slice. --------- Co-authored-by: Alice Cecile <alice.i.cecile@gmail.com> Co-authored-by: Joseph <21144246+JoJoJet@users.noreply.github.com>
Objective
Children
&Parent
that is agnostic to edge direction.Solution
Entity
fromParent
as a slice.