pub struct ScriptParser<F32 = f32, F64 = f64> { /* private fields */ }
Expand description
Parser which allows to parse WebAssembly script text format.
Implementations§
Source§impl<F32: FromBits<u32>, F64: FromBits<u64>> ScriptParser<F32, F64>
impl<F32: FromBits<u32>, F64: FromBits<u64>> ScriptParser<F32, F64>
Sourcepub fn from_source_and_name(
source: &[u8],
test_filename: &str,
) -> Result<Self, Error>
pub fn from_source_and_name( source: &[u8], test_filename: &str, ) -> Result<Self, Error>
Create ScriptParser
from the script in specified file.
The source
should contain valid wast.
The test_filename
must have a .wast
extension.
Sourcepub fn from_source_and_name_with_features(
source: &[u8],
test_filename: &str,
features: Features,
) -> Result<Self, Error>
pub fn from_source_and_name_with_features( source: &[u8], test_filename: &str, features: Features, ) -> Result<Self, Error>
Create ScriptParser
from the script in specified file, parsing with
the given features.
The source
should contain valid wast.
The test_filename
must have a .wast
extension.
Auto Trait Implementations§
impl<F32, F64> Freeze for ScriptParser<F32, F64>
impl<F32, F64> RefUnwindSafe for ScriptParser<F32, F64>where
F32: RefUnwindSafe,
F64: RefUnwindSafe,
impl<F32 = f32, F64 = f64> !Send for ScriptParser<F32, F64>
impl<F32 = f32, F64 = f64> !Sync for ScriptParser<F32, F64>
impl<F32, F64> Unpin for ScriptParser<F32, F64>
impl<F32, F64> UnwindSafe for ScriptParser<F32, F64>where
F32: UnwindSafe,
F64: UnwindSafe,
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