From 684b3f6a224a20d41293e306c6f24738d413c959 Mon Sep 17 00:00:00 2001 From: Tony Arcieri Date: Sat, 19 Oct 2024 16:56:52 -0600 Subject: [PATCH] More `AssocArraySize` docs Note that `AssocArraySize` is what makes `ArrayN` work --- src/traits.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/traits.rs b/src/traits.rs index 1ea0210..b53b118 100644 --- a/src/traits.rs +++ b/src/traits.rs @@ -36,8 +36,10 @@ pub unsafe trait ArraySize: Unsigned { + IntoIterator; } -/// Associates an [`ArraySize`] with a given type. Can be used to write APIs which use `[T; N]` -/// and convert to [`Array`] internally. +/// Associates an [`ArraySize`] with a given type. Can be used to accept `[T; N]` const generic +/// arguments and convert to [`Array`] internally. +/// +/// This trait is also the magic glue that makes the [`ArrayN`][`crate::ArrayN`] type alias work. /// /// # Example ///