Searched refs:ByteCountOutOfBounds (Results 1 – 1 of 1) sorted by relevance
48 pub fn new_rounded_up(bytes: usize) -> Result<Self, ByteCountOutOfBounds> { in new_rounded_up() argument53 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() argument94 .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); struct241 impl fmt::Display for ByteCountOutOfBounds { implementation[all …]