-
Notifications
You must be signed in to change notification settings - Fork 98
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
add raster mask methods #285
Conversation
Maybe we can create a separate Clippy PR based on parts of #284 |
yes we need to solve that issue anyway |
pub struct GdalMaskFlags(i32); | ||
|
||
impl GdalMaskFlags { | ||
const GMF_ALL_VALID: i32 = 0x01; |
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.
I'm a bit surprised we don't have these in gdal-sys
.
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.
i think it is a define not a const variable in the cpp code. I guess bindgen does not pick that up.
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'm not sure what's up, I think it should generate them.
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.
is bindgen able to handle defines? i can't find any examples.
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, it is: rust-lang/rust-bindgen#1185
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.
so what is wrong with our bindgen config? And i guess we would need to regenerate all bindings -_-
Co-authored-by: Laurențiu Nicola <lnicola@users.noreply.github.com>
@bors r+ |
bors r+ |
Build succeeded: |
CHANGES.md
if knowledge of this change could be valuable to users.