Skip to content

Glossary: Rust Basics

len

Also written: len()

A method that gives how many items an array, `Vec` or `HashMap` holds. On text it gives the length in bytes, not letters.

Where the book teaches it

Related terms

ByteArrayVec