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

feat: Implement HasDisplayHandle and HasWindowHandle on reference types #115

Merged
merged 1 commit into from
Mar 20, 2023

Conversation

notgull
Copy link
Member

@notgull notgull commented Mar 20, 2023

Forgot to do this the first time around. Makes sure that these traits can be used from reference as well.

@notgull notgull merged commit b06ee8d into master Mar 20, 2023
@notgull notgull deleted the notgull/impl-more branch March 20, 2023 16:12
fn display_handle<'this, 'active>(
&'this self,
active: &'active Active<'_>,
) -> DisplayHandle<'this>

Choose a reason for hiding this comment

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

Based on the discussion in #104 , shouldn't this return a Option<DisplayHandle<'this>> ?

Copy link
Member Author

Choose a reason for hiding this comment

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

I wanted to keep consistency with master for now.

In addition, I also think Result is better for our use case

@notgull notgull mentioned this pull request Jun 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants