Skip to content

Derive Reflect for ParsedPath and its children#23371

Merged
alice-i-cecile merged 1 commit intobevyengine:mainfrom
jhgarner:reflectParsedPath
Mar 15, 2026
Merged

Derive Reflect for ParsedPath and its children#23371
alice-i-cecile merged 1 commit intobevyengine:mainfrom
jhgarner:reflectParsedPath

Conversation

@jhgarner
Copy link
Copy Markdown
Contributor

Objective

Fixes #22974

Solution

This uses the standard Reflect derive macro to ParsedPath and the types it uses. It doesn't do anything special to handle the 'a parameter in Access<'a>, but that's fine because ParsedPath uses 'static for that parameter anyway.

Testing

I built the docs locally to make sure the implementations were being derived.

image

I also verified that the derive macro created the Enum instance for Access that we'd expect.

image

@alice-i-cecile alice-i-cecile added D-Trivial Nice and easy! A great choice to get started with Bevy A-Assets Load files from disk to use for things like images, models, and sounds S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it A-Reflection Runtime information about types X-Uncontroversial This work is generally agreed upon labels Mar 15, 2026
@github-project-automation github-project-automation bot moved this to Needs SME Triage in Assets Mar 15, 2026
@github-project-automation github-project-automation bot moved this to Needs SME Triage in Reflection Mar 15, 2026
@alice-i-cecile alice-i-cecile added this pull request to the merge queue Mar 15, 2026
Merged via the queue into bevyengine:main with commit 1b6b679 Mar 15, 2026
49 checks passed
@github-project-automation github-project-automation bot moved this from Needs SME Triage to Done in Reflection Mar 15, 2026
@github-project-automation github-project-automation bot moved this from Needs SME Triage to Done in Assets Mar 15, 2026
splo pushed a commit to splo/bevy that referenced this pull request Mar 31, 2026
# Objective

Fixes bevyengine#22974 

## Solution

This uses the standard Reflect derive macro to ParsedPath and the types
it uses. It doesn't do anything special to handle the `'a` parameter in
`Access<'a>`, but that's fine because `ParsedPath` uses `'static` for
that parameter anyway.

## Testing

I built the docs locally to make sure the implementations were being
derived.

<img width="1020" height="253" alt="image"
src="https://github.com/user-attachments/assets/d3fb5630-52f5-4bad-9873-2596684b36a2"
/>

I also verified that the derive macro created the Enum instance for
Access that we'd expect.

<img width="1010" height="86" alt="image"
src="https://github.com/user-attachments/assets/ef4d52f3-2dad-4442-b56e-2d3d4bc32f52"
/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-Assets Load files from disk to use for things like images, models, and sounds A-Reflection Runtime information about types D-Trivial Nice and easy! A great choice to get started with Bevy S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it X-Uncontroversial This work is generally agreed upon

Projects

Status: Done
Status: Done

Development

Successfully merging this pull request may close these issues.

Implement Reflect for ParsedPath

2 participants