TypeUtilities
Module
Implements type utilities.
rebind
rebind[dest_type: AnyType, src_type: AnyType](val: src_type) -> dest_type
Rebinds the value from src_type
to dest_type
.
This is similar to the concept of a reinterpret_cast
in C++.
Parameters:
- dest_type (
AnyType
): The type to rebind to. - src_type (
AnyType
): The original type.
Args:
- val (
src_type
): The value to rebind.
Returns:
The rebound value of dest_type
.