[−][src]Struct wabt::script::ScriptParser
Parser which allows to parse WebAssembly script text format.
Methods
impl<F32: FromBits<u32>, F64: FromBits<u64>> ScriptParser<F32, F64>
[src]
pub fn from_source_and_name(
source: &[u8],
test_filename: &str
) -> Result<Self, Error>
[src]
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.
pub fn from_source_and_name_with_features(
source: &[u8],
test_filename: &str,
features: Features
) -> Result<Self, Error>
[src]
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.
pub fn from_str(source: &str) -> Result<Self, Error>
[src]
Create ScriptParser
from the script source.
pub fn next(&mut self) -> Result<Option<Command<F32, F64>>, Error>
[src]
Returns the next Command
from the script.
Returns Err
if an error occurred while parsing the script,
or returns None
if the parser reached end of script.
Auto Trait Implementations
impl<F32 = f32, F64 = f64> !Sync for ScriptParser<F32, F64>
impl<F32 = f32, F64 = f64> !Send for ScriptParser<F32, F64>
impl<F32, F64> Unpin for ScriptParser<F32, F64> where
F32: Unpin,
F64: Unpin,
F32: Unpin,
F64: Unpin,
impl<F32, F64> RefUnwindSafe for ScriptParser<F32, F64> where
F32: RefUnwindSafe,
F64: RefUnwindSafe,
F32: RefUnwindSafe,
F64: RefUnwindSafe,
impl<F32, F64> UnwindSafe for ScriptParser<F32, F64> where
F32: UnwindSafe,
F64: UnwindSafe,
F32: UnwindSafe,
F64: UnwindSafe,
Blanket Implementations
impl<T> FromBits<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,