Struct wabt::WabtBuf[][src]

pub struct WabtBuf { /* fields omitted */ }

Buffer returned by wabt.

Examples

You can convert it either to Vec:

let vec: Vec<u8> = wabt_buf.as_ref().to_vec();

Or in String:

let text = String::from_utf8(wabt_buf.as_ref().to_vec()).unwrap();

Trait Implementations

impl AsRef<[u8]> for WabtBuf
[src]

Performs the conversion.

impl Drop for WabtBuf
[src]

Executes the destructor for this type. Read more

Auto Trait Implementations

impl !Send for WabtBuf

impl !Sync for WabtBuf