MCPcopy Create free account
hub / github.com/LPC4/Full-Stack / pop

Method pop

crates/virtual-machine/src/devices/keyboard.rs:65–67  ·  view source on GitHub ↗

Pop the oldest event, or the empty sentinel.

(&mut self)

Source from the content-addressed store, hash-verified

63 // Pop the oldest event, or the empty sentinel.
64 fn pop(&mut self) -> u32 {
65 self.queue.pop_front().unwrap_or(KBD_EMPTY)
66 }
67
68 fn read_reg(&mut self, offset: usize) -> u32 {
69 match offset {
70 KBD_STATUS_REG => self.queue.len() as u32,

Callers 14

append_uart_bytesFunction · 0.80
normalize_lexicalFunction · 0.80
undo_selected_sourceMethod · 0.80
redo_selected_sourceMethod · 0.80
collect_hll_fixturesFunction · 0.80
collect_hll_fixturesFunction · 0.80
runMethod · 0.80
blockMethod · 0.80
stmtMethod · 0.80
exprMethod · 0.80
lower_whileMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected