BigInt.opCast

Implements casting to/from qualified BigInt's.

Warning: Casting to/from const or immutable may break type system guarantees. Use with care.

  1. T opCast()
  2. T opCast()
  3. T opCast()
  4. T opCast()
    struct BigInt
    pure nothrow @nogc const
    T
    opCast
    (
    T
    )
    ()
    if (
    is(immutable T == immutable BigInt)
    )

Examples

const(BigInt) x = BigInt("123");
BigInt y = cast() x;    // cast away const
assert(y == x);

Meta