Use this to check if a type is a digest. See ExampleDigest to see what a type must provide to pass this check.
Note: This is very useful as a template constraint (see examples)
import std.digest.crc; static assert(isDigest!CRC32);
import std.digest.crc; void myFunction(T)() if (isDigest!T) { T dig; dig.start(); auto result = dig.finish(); } myFunction!CRC32();
See Implementation
Use this to check if a type is a digest. See ExampleDigest to see what a type must provide to pass this check.
Note: This is very useful as a template constraint (see examples)