4c63ce7a7115c415dcb62ece2e495f86d65e24c8
Implement NSWindowStyleMask as bitflags RE https://github.com/servo/cocoa-rs/issues/159 `NSWindowStyleMask`, as an enumeration in Objective-C, degrades to `NSUInteger` and is therefore bitwise-combinable, though it loses type information. Instead of implementing `NSWindowStyleMask` as a packed-data object with a `u64` representational form, we ought to employ bit flags to generate a strong type that remains combinable in the manner Cocoa programmers are accustomed to. Also easier than manually implementing `std::ops::BitOr` for the type. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/cocoa-rs/160) <!-- Reviewable:end -->
Cocoa-rs
This crate provides Rust bindings to Cocoa for OSX. It's dual-licensed MIT / Apache 2.0. If you'd like to help improve cocoa-rs, check out the Servo contributing guide!
Description
Languages
Rust
100%