numem ~master (2025-12-14T08:31:01.1033613)
Dub
Repo
enforce
numem
core
exception
Enforces the truthiness of
in_
If it evaluates to false, throws a
NuException
.
void
enforce
(T in_, const(char)[] err)
@
nogc
@
trusted
void
enforce
(
T
)
(
T
in_
,
const
(
char
)[]
err
)
void
enforce
(T in_, NuException t)
Meta
Source
See Implementation
numem
core
exception
classes
NuException
functions
assumeNoGC
assumeNoThrow
assumeNoThrowNoGC
assumeNoThrowNoGCPure
assumePure
enforce
Enforces the truthiness of in_
If it evaluates to false, throws a NuException.