Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/douchuan/algorithm
/ first
Method
first
src/ll/linked_list.rs:100–102 ·
view source on GitHub ↗
(&self)
Source
from the content-addressed store, hash-verified
98
}
99
100
pub fn first(&self) -> Option<&T> {
101
unsafe { self.head.map(|node| &node.as_ref().element) }
102
}
103
104
pub fn last(&self) -> Option<&T> {
105
unsafe { self.tail.map(|node| &node.as_ref().element) }
Callers
3
peek
Method · 0.80
peek
Method · 0.80
do_build
Function · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected