Struct tinywasm_parser::Parser
source · pub struct Parser {}
Implementations§
source§impl Parser
impl Parser
pub fn new() -> Self
pub fn parse_module_bytes( &self, wasm: impl AsRef<[u8]> ) -> Result<TinyWasmModule>
pub fn parse_module_file( &self, path: impl AsRef<Path> + Clone ) -> Result<TinyWasmModule>
pub fn parse_module_stream(&self, stream: impl Read) -> Result<TinyWasmModule>
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Parser
impl Send for Parser
impl Sync for Parser
impl Unpin for Parser
impl UnwindSafe for Parser
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more