From 6be1599d7a0df27fd1888c78d247f8810cb8f750 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Fri, 5 Nov 2021 08:00:54 +0100 Subject: [PATCH] docs: state allowed key expressions in `phf_map` --- phf/src/lib.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/phf/src/lib.rs b/phf/src/lib.rs index 627d3e81..e60f524b 100644 --- a/phf/src/lib.rs +++ b/phf/src/lib.rs @@ -83,6 +83,11 @@ extern crate std as core; /// /// Requires the `macros` feature. /// +/// Supported key expressions are: +/// - literals: bools, (byte) strings, bytes, chars, and integers (these must have a type suffix) +/// - arrays of `u8` integers +/// - `UniCase::unicode(string)` or `UniCase::ascii(string)` if the `unicase` feature is enabled +/// /// # Example /// /// ```