Where to find documentation of implicit methods on primitive types?

I'm new to Rust and looking at https://doc.rust-lang.org/std/primitive.array.html

On this page I'm not able to find documentation of the len() method of array. I can find methods like as_ascii(), as_slice() etc.

Where to find documentation of len() and other implicit methods?

Thanks

Arrays coerce to slices ([T]), so a slice method may be called on an array. Indeed, this provides most of the API for working with arrays.

Non-built-in types have a section for deref-coercion methods, but arrays do not, which I agree is an area the official docs could improve on.

4 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.