Struct artichoke_backend::state::parser::State[][src]

pub struct State { /* fields omitted */ }

Implementations

Reset line number to 1.

Fetch the current line number from the parser state.

Increment line number and return the new value.

Errors

This function returns IncrementLinenoError if the increment results in an overflow of the internal parser line number counter.

Push a Context onto the stack.

The supplied Context becomes the currently active context. This function modifies the parser state so subsequently evaled code will use the current active Context.

Removes the last element from the context stack and returns it, or None if the stack is empty.

Calls to this function modify the parser state so subsequently evaled code will use the current active Context.

Returns the last Context, or None if the context stack is empty.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.