pub struct Transcoder { /* private fields */ }
Expand description

Transcoder wraps the parsed file in its intermediary format before conversion.

Implementations

Constructor for Transcoder that takes a Format

Constructor for Transcoder that reads a file path and infers the type from the extension.

Convert the parsed document to a JSON Value.

Convert the parsed document to a YAML Value.

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

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.