Enum retool::Converter

source ·
pub enum Converter {
    Dummy,
    Feat,
}
Expand description

Converters to process 5e.tools data into Reroll data.

Variants§

§

Dummy

Converter sample for testing that returns the input data unmodified.

§

Feat

Converter to process feats from 5e.tools into Reroll data.

Implementations§

Implement Converter methods to handle data processing.

Convert a JSON file containing an array of 5e.tools entries to the Reroll equivalent.

Convert a serialised JSON array of 5e.tools entries to the Reroll equivalent.

Convert a JsonValue array of 5e.tools entries to the Reroll equivalent.

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.