-
-
Notifications
You must be signed in to change notification settings - Fork 62
Conversation
The trait is implemented for types themselves now instead of references.
* `Object` is based on `Refcounted` now. * Upcasts are implicit in `ToGlibPtr` implementations now removing the need to call `upcast`. * The `Upcast` trait is essentially a shorthand for the presence of the appropriate `ToGlibPtr` implementations. * `downcast_unchecked` is unsafe with its `assert` changed to `debug_assert`.
Add conversions to/from `ObjectRef`. This simplifies `Downcast` bounds and implementation.
@@ -1,6 +1,6 @@ | |||
language: rust | |||
rust: | |||
- beta | |||
- nightly |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we should just add beta too once and for all since it seems to work. Like this, all three stages will be tested. That's not very useful but whatever...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah I guess there's no harm in having beta too.
Except for build targets, all seems ok. That's a very impressive work, thanks a lot for this ! |
Perfect, examples will need to be updated too. Wanna do it ? |
I don't think examples are affected, the build breaks because the other two PRs and this one are mutually dependent. |
Ok, then let's merge ! :D |
Wrappers evolution Follows the changes in gtk-rs/glib#77
Refcounted
wrapper.Object
wrapper viaRefcounted
.ToGlibPtr
for saner implementations."Reformed" branches: gtk-rs/gdk#84 and gtk