vibe.d beta banner
get vibe.d
0.10.0

Asynchronous I/O that doesn’t get in your way, written in D

Enum member isFormMap

Tests if a given type is suitable for storing a web form.

enum isFormMap(T) = isStringMap!T || isJsonLike!T;

Types that define iteration support with the key typed as string and the value either also typed as string, or as a Json like value. The latter case specifically requires a .type property that is tested for equality with T.Type.string, as well as a .get!string method.

Authors

Sönke Ludwig, Jan Krüger

Copyright

© 2012-2014 RejectedSoftware e.K.

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.