wasm_module: create const ValueType::VOID to use as block type

This commit is contained in:
Brian Carroll 2022-11-26 00:38:41 +00:00
parent b69be0e12d
commit d9fe907684
No known key found for this signature in database
GPG key ID: 5C7B2EC4101703C0
2 changed files with 5 additions and 3 deletions

View file

@ -637,6 +637,10 @@ pub enum ValueType {
F64 = 0x7c,
}
impl ValueType {
pub const VOID: u8 = 0x40;
}
impl Serialize for ValueType {
fn serialize<T: SerialBuffer>(&self, buffer: &mut T) {
buffer.append_u8(*self as u8);