[][src]Struct wabt::script::ScriptParser

pub struct ScriptParser<F32 = f32, F64 = f64> { /* fields omitted */ }

Parser which allows to parse WebAssembly script text format.

Methods

impl<F32: FromBits<u32>, F64: FromBits<u64>> ScriptParser<F32, F64>
[src]

Create ScriptParser from the script in specified file.

The source should contain valid wast.

The test_filename must have a .wast extension.

Create ScriptParser from the script source.

Returns the next Command from the script.

Returns Err if an error occured while parsing the script, or returns None if the parser reached end of script.

Auto Trait Implementations

impl<F32 = f32, F64 = f64> !Send for ScriptParser<F32, F64>

impl<F32 = f32, F64 = f64> !Sync for ScriptParser<F32, F64>

Blanket Implementations

impl<T> FromBits for T
[src]

Convert other to Self, preserving bitwise representation

impl<T> From for T
[src]

Performs the conversion.

impl<T, U> Into for T where
    U: From<T>, 
[src]

Performs the conversion.

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<T> Borrow for T where
    T: ?Sized
[src]

Immutably borrows from an owned value. Read more

impl<T> Any for T where
    T: 'static + ?Sized
[src]

🔬 This is a nightly-only experimental API. (get_type_id)

this method will likely be replaced by an associated static

Gets the TypeId of self. Read more

impl<T> BorrowMut for T where
    T: ?Sized
[src]

Mutably borrows from an owned value. Read more

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.