MCPcopy Create free account
hub / github.com/douchuan/algorithm / iter

Method iter

src/ll/linked_list.rs:91–98  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

89 }
90
91 pub fn iter(&self) -> Iter<'_, T> {
92 Iter {
93 head: self.head,
94 // tail: self.tail,
95 len: self.len,
96 marker: PhantomData,
97 }
98 }
99
100 pub fn first(&self) -> Option<&T> {
101 unsafe { self.head.map(|node| &node.as_ref().element) }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected