Struct tspf::TspBuilder[][src]

pub struct TspBuilder { /* fields omitted */ }
Expand description

Responsible for constructing an instance of Tsp.

Implementations

Parses an input string.

If all entries in the input string are valid, a Tsp object will be returned. Otherwise, an error ParseTspError is returned, containing hints why the parsing fails.

Parses the content of a file given from a path.

If all entries in the input file are valid, a Tsp object will be returned. Otherwise, an error ParseTspError is returned, containing hints why the parsing fails.

Validates the inputs and constructs a Tsp object if the validation is successful. Otherwise, returns an error ParseTspError.

Trait Implementations

Formats the value using the given formatter. Read more

Returns the “default value” for a type. 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.