Skip to content

Add a peek_pos helper function#188

Merged
g-plane merged 1 commit into
g-plane:mainfrom
UnknownPlatypus:add-peek-pos-helper
Jan 12, 2026
Merged

Add a peek_pos helper function#188
g-plane merged 1 commit into
g-plane:mainfrom
UnknownPlatypus:add-peek-pos-helper

Conversation

@UnknownPlatypus

Copy link
Copy Markdown
Contributor

We do this pattern a bunch of time in this files, this extract it into a small helper.
I've added the inline hint because this in on a hotpath and to match previous behavior

@g-plane g-plane left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Thanks!

IIRC for functions only visible for crate itself (not exported as API), the compiler can automatically inline them.

@g-plane g-plane merged commit 5f73f4f into g-plane:main Jan 12, 2026
2 checks passed
@UnknownPlatypus UnknownPlatypus deleted the add-peek-pos-helper branch January 20, 2026 23:02
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.

2 participants