Closed sunfishcode closed 11 months ago
Change value::Value and value::Type from pub enums with arms that use private types, to a public newtype, making the actual enum private.
value::Value
value::Type
pub
enum
This makes the API easier to understand, as it fully hides types like SimpleType which are private.
SimpleType
https://docs.rs/wasm-wave/latest/wasm_wave/value/enum.Value.html https://docs.rs/wasm-wave/latest/wasm_wave/value/enum.Type.html
Change
value::Value
andvalue::Type
frompub
enums with arms that use private types, to a public newtype, making the actualenum
private.This makes the API easier to understand, as it fully hides types like
SimpleType
which are private.https://docs.rs/wasm-wave/latest/wasm_wave/value/enum.Value.html https://docs.rs/wasm-wave/latest/wasm_wave/value/enum.Type.html