Skip to content

feat(path): expose *Path-related utility functions - #349

Open
cartercanedy wants to merge 15 commits into
HMIProject:mainfrom
cartercanedy:cc/implement-rel-path-methods
Open

cartercanedy wants to merge 15 commits into
HMIProject:mainfrom
cartercanedy:cc/implement-rel-path-methods

Conversation

@cartercanedy

@cartercanedy cartercanedy commented Jul 24, 2026 •

Copy link
Copy Markdown
Contributor

Closes #348

Implements UA_RelativePath factories/methods:

  • UA_RelativePath_parse -> ua::RelativePath::parse() -> Result<Self>
  • UA_RelativePath_print -> impl Display for ua::RelativePath
  • get/get_mut that folds the fallible access into the array validity check
  • iter/iter_mut that also maps invalid array access to an empty iterator
  • Index/IndexMut for unsafe element access initially implemented, but removed since unsafe to reinforce safe access semantics

Accesser methods were also implemented.

Note: rebased this onto the stack above #360 to unblock downstream work

@cartercanedy cartercanedy changed the title feat(relative path): expose *Path-related utility functions feat(path): expose *Path-related utility functions Jul 24, 2026
@cartercanedy

Copy link
Copy Markdown
Contributor Author

hey @sgoll @uklotzde friendly ping :)

@uklotzde uklotzde left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your contribution and apologies for not responding promptly. Unfortunately we are currently very busy and didn't find the time for an in-depth review yet.

I left some initial comments.

Comment thread src/ua/data_types/relative_path.rs Outdated
Comment thread src/ua/data_types/relative_path.rs Outdated
Comment thread src/ua/data_types/relative_path.rs Outdated
@cartercanedy
cartercanedy requested a review from uklotzde October 2, 2026 14:24
@cartercanedy

Copy link
Copy Markdown
Contributor Author

Hey @uklotzde, sorry for the delay, should be good know

@cartercanedy
cartercanedy force-pushed the cc/implement-rel-path-methods branch from fbdb195 to aac0be3 Compare October 5, 2026 12:39
@cartercanedy

Copy link
Copy Markdown
Contributor Author

@uklotzde thanks for fixing the precommit issues upstream, just rebased and everything's looking good

@uklotzde uklotzde left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please also add a changelog entry.

Comment thread src/ua/data_types/relative_path.rs
Comment thread src/ua/data_types/relative_path.rs
@cartercanedy
cartercanedy requested a review from uklotzde October 14, 2026 12:01
@cartercanedy

Copy link
Copy Markdown
Contributor Author

Hey @uklotzde, are you available to rereview?

@cartercanedy
cartercanedy force-pushed the cc/implement-rel-path-methods branch from 9cdf958 to 1b1676c Compare October 14, 2026 14:17
@cartercanedy
cartercanedy marked this pull request as draft October 14, 2026 14:18
@cartercanedy
cartercanedy force-pushed the cc/implement-rel-path-methods branch 3 times, most recently from 4bbc33c to 36e288c Compare October 15, 2026 19:37
@uklotzde uklotzde added this to the v0.12.1 milestone Oct 17, 2026
@cartercanedy
cartercanedy force-pushed the cc/implement-rel-path-methods branch 3 times, most recently from a8c8971 to a8b4178 Compare October 20, 2026 12:43
@cartercanedy
cartercanedy force-pushed the cc/implement-rel-path-methods branch 2 times, most recently from 402883d to 6b3fbeb Compare October 22, 2026 03:57
@uklotzde uklotzde modified the milestones: v0.12.1, v0.12.2 Oct 22, 2026
@uklotzde

Copy link
Copy Markdown
Collaborator

This PR does not need to be based on the ASAN PR.

Code looks reasonable, just a changelog entry is missing.

@cartercanedy
cartercanedy force-pushed the cc/implement-rel-path-methods branch 2 times, most recently from 1fd1460 to e5062a0 Compare October 23, 2026 20:49
@cartercanedy
cartercanedy marked this pull request as ready for review October 23, 2026 20:51
@cartercanedy
cartercanedy force-pushed the cc/implement-rel-path-methods branch from e5062a0 to 4cce679 Compare October 23, 2026 20:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

{Browse,Relative}Path ergonomics

2 participants