@@ -126,7 +126,7 @@ macro_rules! implement_actions {
126126 } ;
127127}
128128
129- implement_actions ! (
129+ implement_actions ! {
130130 /// Get the number of keys present in the database
131131 fn dbsize( ) -> u64 {
132132 { Query :: from( "dbsize" ) }
@@ -203,6 +203,8 @@ implement_actions!(
203203 /// ```text
204204 /// MGET <k1> <k2> ...
205205 /// ```
206+ ///
207+ /// **This method expects either:** `[T; N]`, `&[T; N]` or anything that derefs to `&[T]`
206208 fn mget<T : FromSkyhashBytes >( keys: impl IntoSkyhashAction + ' s) -> T {
207209 { Query :: from( "mget" ) . arg( keys) }
208210 x @ Element :: Array ( Array :: Bin ( _) ) | x @ Element :: Array ( Array :: Str ( _) ) => T :: from_element( x) ?
@@ -235,6 +237,8 @@ implement_actions!(
235237 ///
236238 /// ## Panics
237239 /// This method will panic if the number of keys and values are not equal
240+ ///
241+ /// **This method expects either:** `[T; N]`, `&[T; N]` or anything that derefs to `&[T]`
238242 fn mset<T : IntoSkyhashBytes + ' s , U : IntoSkyhashBytes + ' s>
239243 (
240244 keys: impl GetIterator <T > + ' s,
@@ -257,6 +261,8 @@ implement_actions!(
257261 ///
258262 /// ## Panics
259263 /// This method will panic if the number of keys and values are not equal
264+ ///
265+ /// **This method expects either:** `[T; N]`, `&[T; N]` or anything that derefs to `&[T]`
260266 fn mupdate<T : IntoSkyhashBytes + ' s , U : IntoSkyhashBytes + ' s>
261267 (
262268 keys: impl GetIterator <T > + ' s,
@@ -329,6 +335,8 @@ implement_actions!(
329335 ///
330336 /// ## Panics
331337 /// This method will panic if the number of keys and values are not equal
338+ ///
339+ /// **This method expects either:** `[T; N]`, `&[T; N]` or anything that derefs to `&[T]`
332340 fn sset<T : IntoSkyhashBytes + ' s , U : IntoSkyhashBytes + ' s>
333341 (
334342 keys: impl GetIterator <T > + ' s,
@@ -353,8 +361,11 @@ implement_actions!(
353361 /// ```
354362 /// with the only difference that you have to pass in the keys and values as separate
355363 /// objects
364+ ///
356365 /// ## Panics
357366 /// This method will panic if the number of keys and values are not equal
367+ ///
368+ /// **This method expects either:** `[T; N]`, `&[T; N]` or anything that derefs to `&[T]`
358369 fn supdate<T : IntoSkyhashBytes + ' s , U : IntoSkyhashBytes + ' s>
359370 (
360371 keys: impl GetIterator <T > + ' s,
@@ -391,6 +402,8 @@ implement_actions!(
391402 ///
392403 /// ## Panics
393404 /// This method will panic if the number of keys is not equal to the number of values
405+ ///
406+ /// **This method expects either:** `[T; N]`, `&[T; N]` or anything that derefs to `&[T]`
394407 fn uset<T : IntoSkyhashBytes + ' s , U : IntoSkyhashBytes + ' s>
395408 (
396409 keys: impl GetIterator <T > + ' s,
@@ -405,4 +418,4 @@ implement_actions!(
405418 }
406419 Element :: UnsignedInt ( int) => int as u64
407420 }
408- ) ;
421+ }
0 commit comments