pub struct Parser<'a> { /* private fields */ }
Expand description

Parser.

Iteration

Box<Parser> implements IntoIterator<Item = Result<Event, ParserError>>, and thus can be used in for loops. The iterator is fused, and produces None forever after the end of stream or after a first encountered error.

Implementations

Create a parser with default configuration.

If a custom configuration is needed, use ParserBuilder to build a Parser instance.

Parse an event.

Return raw pointer to the underlying yaml_parser_t.

Trait Implementations

Executes the destructor for this type. Read more

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

Creates an iterator from a value. 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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.