Struct factorio_blueprint::BlueprintCodec[][src]

pub struct BlueprintCodec;
Expand description

Utility class which knows how to convert JSON to and from Factorio’s blueprint string format.

Implementations

writer adaptor which encodes json data to blueprint string format

typically it is more useful to use encode instead, but this method provides some extra flexibility.

write the blueprint string to the given writer

produce a new owned string containing the blueprint string

reader adaptor which decodes a blueprint string to json

typically it is more useful to use decode instead, but this method gives flexibility in the event that it is required

read the blueprint string from the given reader

read the blueprint string from the given input

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.