Skip to content

Glossary: Data Structures and Algorithms in Rust

take()

Also written: take

An Option method that pulls the value out and leaves None behind. It lets linked-list code move a node without moving out of a borrow.

Where the book teaches it

Related terms

OptionLinked listOwnership