StdConvTypeGuesser

Guesser based on std.conv.to family of functions.

Guesser based on std.conv.to family of functions. It will attempt to convert sequentially to all ConvertableTypes until one succeeds, for which the typeinfo will be returned.

@safe
class StdConvTypeGuesser : TypeGuesser!SerializedType(
SerializedType
ConvertableTypes...
) {}

Members

Functions

guess
TypeInfo guess(SerializedType serialized)

Guess the D type of serialized based on eager attempts to convert serialized to one of ConvertableTypes.

Meta