Skip to content

feat: Implement HasDisplayHandle and HasWindowHandle on reference types#115

Merged
notgull merged 1 commit intomasterfrom
notgull/impl-more
Mar 20, 2023
Merged

feat: Implement HasDisplayHandle and HasWindowHandle on reference types#115
notgull merged 1 commit intomasterfrom
notgull/impl-more

Conversation

@notgull
Copy link
Copy Markdown
Contributor

@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>
Copy link
Copy Markdown

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
Copy Markdown
Contributor 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.

2 participants