Kevin Mehall

Results 28 issues of Kevin Mehall

The methods generated by this library return `Pin

When adding a table using an [exclusion constraint](https://www.postgresql.org/docs/12/sql-createtable.html#SQL-CREATETABLE-EXCLUDE), for example: ``` CREATE EXTENSION btree_gist; create table event( resource_id int not null, start_time timestamptz not null, end_time timestamptz not null, exclude...

bug

Minimal example: ``` pub rule mut_prec(a: &mut ()) -> () = precedence! { "a" { a; () } } ``` ``` ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ error[E0507]: cannot move out of `a`, a captured...

bug

Rust-peg currently adds `&'input` to the specified input type. The `'input` lifetime violates macro hygiene and is confusing to use along with other explicitly-declared lifetimes used in the input type....

For advanced use cases, it would be nice to add a PEG expression in which a block of Rust code in the grammar is passed the input and current position,...

feature

A common pattern in rust-peg grammars is to use a block at the end of a parenthesized subexpression to choose a return value inside of a `*` or `?` expression,...

feature

I was trying to implement something resembling `libusb_handle_events_completed` using the low-level APIs following the [example in the documentation](https://libusb.sourceforge.io/api-1.0/libusb_mtasync.html#threadwait). Simplified and translated from Rust back to C: ```c while (!atomic_load(completed)) {...

core
Documentation

* Previously the `-main` argument was ignored because the `custom_mainclass` variable was set but never used. `process_args` is called after `app_mainclass` is set to the default value, so this PR...

Files using the floating-point predictor (GDAL's `-co PREDICTOR=3`) were silently decoding corrupt data because the algorithm implemented corresponds to predictor 2.

I generated 3 test files from the same source file with: ``` gdalwarp -t_srs EPSG:4326 -r med -ts 500 0 -co COMPRESS=LZW -co NUM_THREADS=4 -co TILED=YES -co PREDICTOR=1 dsm.tif out_1.tif...