MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / pop_f32_const

Method pop_f32_const

winch/codegen/src/stack.rs:423–428  ·  view source on GitHub ↗

Pops the element at the top of the stack if it is an f32 const; returns `None` otherwise.

(&mut self)

Source from the content-addressed store, hash-verified

421 /// Pops the element at the top of the stack if it is an f32 const;
422 /// returns `None` otherwise.
423 pub fn pop_f32_const(&mut self) -> Option<Ieee32> {
424 match self.peek() {
425 Some(v) => v.is_f32_const().then(|| self.pop().unwrap().unwrap_f32()),
426 _ => None,
427 }
428 }
429
430 /// Pops the element at the top of the stack if it is an f64 const;
431 /// returns `None` otherwise.

Callers

nothing calls this directly

Calls 5

is_f32_constMethod · 0.80
peekMethod · 0.45
unwrap_f32Method · 0.45
unwrapMethod · 0.45
popMethod · 0.45

Tested by

no test coverage detected