butte-rs / butte

72 stars 8 forks source link

Support default values in `Table::get` #60

Closed reyk closed 4 years ago

reyk commented 4 years ago

This implements support for default values in Table::get, see #59

The if o == 0 to detect the default value matches what is done in the flatbuffers crate.

Test cases are currently missing but it would be really nice to get a test framework as suggested by @magnet #42

lovesegfault commented 4 years ago

@reyk Please rebase and force push so the CI re-runs; I fixed it in master :)