If this is an expected value (of type T) apply fun on it and return result, otherwise return current unexpected value (of type E).
https://dlang.org/phobos/std_typecons.html#.apply
See Implementation
If this is an expected value (of type T) apply fun on it and return result, otherwise return current unexpected value (of type E).