Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/QMHTMY/RustBook
/ is_empty
Method
is_empty
code/chapter03/divide_by_two.rs:26–28 ·
view source on GitHub ↗
(&self)
Source
from the content-addressed store, hash-verified
24
}
25
26
fn is_empty(&self) -> bool {
27
0 == self.top
28
}
29
}
30
31
fn divide_by_two(mut dec_num: u32) -> String {
Callers
1
divide_by_two
Function · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected