Searched refs:ArithmeticOverflow (Results 1 – 7 of 7) sorted by relevance
117 quote! { #x.checked_mul(#y).ok_or(ParseError::ArithmeticOverflow) } in compute()133 let bit_difference = #x.checked_sub(#y).ok_or(ParseError::ArithmeticOverflow)?; in compute()153 … quote! { #base_id.checked_add_signed(#offset as isize).ok_or(ParseError::ArithmeticOverflow) } in compute()159 #x.checked_add(#y.checked_mul(8).ok_or(ParseError::ArithmeticOverflow)?) in compute()160 .ok_or(ParseError::ArithmeticOverflow) in compute()
23 ArithmeticOverflow, enumerator52 .ok_or(ParseError::ArithmeticOverflow)?, in offset()67 .ok_or(ParseError::ArithmeticOverflow)?, in slice()134 T::try_from(accumulator).map_err(|_| ParseError::ArithmeticOverflow) in try_parse()
131 …et curr_view = view.offset(element_size.checked_mul(i * 8).ok_or(ParseError::ArithmeticOverflow)?)? in generate_packet()132 … .slice(element_size.checked_mul(8).ok_or(ParseError::ArithmeticOverflow)?)?; in generate_packet()192 ….offset(#offset)?.slice(#end_offset.checked_sub(#offset).ok_or(ParseError::ArithmeticOverflow)?)? } in generate_packet()
141 ArithmeticOverflow(safemath::Error), enumerator265 Self::ArithmeticOverflow(err) in from()272 Self::ArithmeticOverflow(err.into()) in from()
149 ArithmeticOverflow { what: &'static str }, enumerator196 DeserializeError(DeserializeErrorKind::ArithmeticOverflow { what }) in arithmetic_overflow()255 ArithmeticOverflow { what } => { in fmt()
132 assert!(matches!(aligned_subslice(bytes, SafeNum::MAX), Err(Error::ArithmeticOverflow(_)))); in aligned_subslice_alignment_overflow()
179 Error::ArithmeticOverflow(_) => IoError::RangeOutsidePartition, in read_from_partition()