Skip to content

Glossary: Data Structures and Algorithms in Rust

as_deref()

Also written: as_deref

An `Option` method that turns a `&Option<Box<Node>>` into an `Option<&Node>`, giving a borrowed look at the next node without taking ownership. It is commonly used to walk a linked list one node at a time.

Where the book teaches it

Related terms

TraversalBoxOption