Home
last modified time | relevance | path

Searched refs:ByteCountOutOfBounds (Results 1 – 1 of 1) sorted by relevance

/wasmtime-44.0.1/crates/wasmtime/src/runtime/vm/
H A Dbyte_count.rs48 pub fn new_rounded_up(bytes: usize) -> Result<Self, ByteCountOutOfBounds> { in new_rounded_up() argument
53 None => Err(ByteCountOutOfBounds(ByteCountOutOfBoundsKind::RoundUp)), in new_rounded_up()
61 pub fn new_rounded_up_u64(bytes: u64) -> Result<Self, ByteCountOutOfBounds> { in new_rounded_up_u64() argument
94 .ok_or(ByteCountOutOfBounds(ByteCountOutOfBoundsKind::Add)) in checked_add()
108 .ok_or_else(|| ByteCountOutOfBounds(ByteCountOutOfBoundsKind::Sub)) in checked_sub()
126 .ok_or_else(|| ByteCountOutOfBounds(ByteCountOutOfBoundsKind::Mul)) in checked_mul()
136 .ok_or_else(|| ByteCountOutOfBounds(ByteCountOutOfBoundsKind::Div)) in checked_div()
159 .ok_or_else(|| ByteCountOutOfBounds(ByteCountOutOfBoundsKind::Rem)) in checked_rem()
239 pub struct ByteCountOutOfBounds(ByteCountOutOfBoundsKind); struct
241 impl fmt::Display for ByteCountOutOfBounds { implementation
[all …]