enforce

Enforces the truthiness of in_

If it evaluates to false, throws a NuException.

  1. void enforce(T in_, const(char)[] err)
    @nogc @trusted
    void
    enforce
    (
    T
    )
    (
    T in_
    ,
    const(char)[] err
    )
  2. void enforce(T in_, NuException t)

Meta