diff --git a/utils/litemap/src/map.rs b/utils/litemap/src/map.rs index a1fc69718ea..9264cbd3e04 100644 --- a/utils/litemap/src/map.rs +++ b/utils/litemap/src/map.rs @@ -574,6 +574,8 @@ where impl<'a, K, V> LiteMap { /// Const version of [`LiteMap::len()`] for a slice store. /// + /// Note: This function will no longer be needed if const trait behavior is stabilized. + /// /// # Examples /// /// ```rust @@ -593,6 +595,8 @@ impl<'a, K, V> LiteMap { /// Const version of [`LiteMap::is_empty()`] for a slice store. /// + /// Note: This function will no longer be needed if const trait behavior is stabilized. + /// /// # Examples /// /// ```rust @@ -609,6 +613,8 @@ impl<'a, K, V> LiteMap { /// Const version of [`LiteMap::get_indexed()`] for a slice store. /// + /// Note: This function will no longer be needed if const trait behavior is stabilized. + /// /// # Panics /// /// Panics if the index is out of bounds. @@ -661,6 +667,8 @@ impl<'a, V> LiteMap<&'a str, V, &'a [(&'a str, V)]> { /// /// Also returns the index of the value. /// + /// Note: This function will no longer be needed if const trait behavior is stabilized. + /// /// # Examples /// /// ```rust @@ -702,6 +710,8 @@ impl<'a, V> LiteMap<&'a [u8], V, &'a [(&'a [u8], V)]> { /// /// Also returns the index of the value. /// + /// Note: This function will no longer be needed if const trait behavior is stabilized. + /// /// # Examples /// /// ```rust @@ -743,6 +753,8 @@ macro_rules! impl_const_get_with_index_for_integer { impl<'a, V> LiteMap<$integer, V, &'a [($integer, V)]> { /// Const function to get the value associated with an integer key, if it exists. /// + /// Note: This function will no longer be needed if const trait behavior is stabilized. + /// /// Also returns the index of the value. pub const fn const_get_with_index(&self, key: $integer) -> Option<(usize, &'a V)> { let mut i = 0;