Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/douchuan/algorithm
/ len
Method
len
src/ll/linked_list.rs:38–40 ·
view source on GitHub ↗
(&self)
Source
from the content-addressed store, hash-verified
36
37
impl<T> LinkedList<T> {
38
pub fn len(&self) -> usize {
39
self.len
40
}
41
42
pub fn is_empty(&self) -> bool {
43
self.len == 0
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected