-
-
Notifications
You must be signed in to change notification settings - Fork 174
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
New and with_type methods as in gtk-rs-core #1384
Labels
enhancement
New feature or request
Milestone
Comments
Would be nice to gather a list of methods that could make use of such changes. |
I counted these:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In general, we should provide typed methods when possible and
with_type
variants.Example:
Widget::ancestor(widget, type)
(which currently returns aOption<Widget>
) could becomeWidget::ancestor::<gtk::Label>(widget)
and directly return a typedOption<Label>
.The text was updated successfully, but these errors were encountered: