Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/QMHTMY/RustBook
/ is_empty
Method
is_empty
code/chapter03/lvec.rs:46–48 ·
view source on GitHub ↗
(&self)
Source
from the content-addressed store, hash-verified
44
}
45
46
fn is_empty(&self) -> bool {
47
0 == self.size
48
}
49
50
fn push(&mut self, elem: T) {
51
let node = Node::new(elem);
Callers
2
push
Method · 0.45
insert
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected