Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
serde-wasm-bindgen
, allow VTree type as input parameter (#75)
This PR primarily adds choice on how a user can generate a VTree. For now, we support right/left-linear and even splits (with the number as an extra parameter). Right now, `wasm_bindgen` only supports C-like enums, instead of Rust's variant-like approach - so, I need to do some serialization to make this work. For the future: 1. more VTree generation methods 2. better error message when `even_split` fails I use these changes in mattxwang/indecision@cacac51
- Loading branch information
Showing
2 changed files
with
35 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters