We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
getrandom_array
1 parent 2b164cd commit 2dace63Copy full SHA for 2dace63
src/lib.rs
@@ -394,6 +394,14 @@ unsafe impl<T: TransmuteFromArbitraryBytes, const N: usize> TransmuteFromArbitra
394
/// # }
395
/// ```
396
///
397
+/// The number of nested arrays is limited only by whatever limits the compiler
398
+/// imposes:
399
+/// ```
400
+/// # use getrandom::getrandom_array;
401
+/// let lots_of_layers_of_nesting =
402
+/// getrandom_array::<[[[[[[[[[[[[[[[[u8; 1]; 1]; 1]; 1]; 1]; 1]; 1]; 1]; 1]; 1]; 1]; 1]; 1]; 1]; 1]; 1]>();
403
404
+///
405
/// The patterns above allows us to avoid implementing
406
/// `TransmuteFromArbitraryBytes` for an endless number of types.
407
#[cfg(feature = "rust-1-55")]
0 commit comments