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

Method is_empty

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

Source from the content-addressed store, hash-verified

40 }
41
42 pub fn is_empty(&self) -> bool {
43 self.len == 0
44 }
45
46 pub fn push_back(&mut self, element: T) {
47 let mut node = Node::new(element);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected