Module tanya.conv
This module provides functions for converting between different types.
Functions
Name | Description |
to(from)
|
Performs checked conversion from an integral type From to an
integral type To.
|
to(from)
|
Converts a floating point number to an integral type.
|
to(from)
|
Performs checked conversion from an integral type From to an
enum.
|
to(from)
|
Converts from to a boolean.
|
to(from)
|
Converts a boolean to To.
|
to(from)
|
Converts a stringish range to an integral value.
|
Templates
Name | Description |
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.
|