tanya.conv

This module provides functions for converting between different types.

Members

Classes

ConvException
class ConvException

Thrown if a type conversion fails.

Functions

readIntegral
T readIntegral(R range, ubyte base)
Undocumented in source.
to
To to(From from)

Performs checked conversion from an integral type From to an integral type To.

to
To to(From from)

Converts a floating point number to an integral type.

to
To to(From from)

Performs checked conversion from an integral type From to an $(D_KEYWORD enum).

to
To to(From from)

Converts from to a boolean.

to
To to(From from)

Converts a boolean to To.

to
To to(From from)

Converts a stringish range to an integral value.

Templates

to
template to(To)

If the source type From and the target type To are equal, does nothing. If From can be implicitly converted to To, just returns from.

Meta