What is `ArrayLike`?

The docs for [T; N] mentions that arrays implement a trait called ArrayLike (https://doc.rust-lang.org/std/primitive.array.html?search=ArrayLike#impl-ArrayLike-for-[T;+1]).

But I'm not able to find any other information about this trait. Is that a documentation error?

Looks like some private dependency leaked into the docs.

Also looks like it will be fixed, uh, whenever things are regenerated. (I'm not sure if that means "next release" or if it might be sooner.)

2 Likes

The impl doesn't show up in the beta or nightly docs, so it'll be fixed with the release of 1.79.0 unless it sees a stable backport for a 1.78.1 patch release. Doc issues usually don't justify a patch release on their own, but do sometimes ride a separately justified one. Looking at the rustdoc patch to fix this, it could but isn't certain to be safe for stable backport.

2 Likes

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.