Lines Matching refs:Err
212 return Err(SizeError::new(bytes).into()); in sized_from()
214 if let Err(err) = util::validate_aligned_to::<_, T>(bytes.deref()) { in sized_from()
215 return Err(err.with_src(bytes).into()); in sized_from()
230 return Err(SizeError::new(bytes).into()); in sized_from_prefix()
232 if let Err(err) = util::validate_aligned_to::<_, T>(bytes.deref()) { in sized_from_prefix()
233 return Err(err.with_src(bytes).into()); in sized_from_prefix()
254 return Err(SizeError::new(bytes).into()); in sized_from_suffix()
257 if let Err(err) = util::validate_aligned_to::<_, T>(bytes.deref()) { in sized_from_suffix()
258 return Err(err.with_src(bytes).into()); in sized_from_suffix()
313 if let Err(e) = in from_bytes()
316 return Err(e.with_src(()).with_src(source)); in from_bytes()
371 Err(e) => { in from_prefix()
372 return Err(e.with_src(()).with_src(source)); in from_prefix()
436 Err(e) => { in from_suffix()
438 return Err(e.with_src(source)); in from_suffix()
495 None => return Err(SizeError::new(source).into()), in from_bytes_with_elems()
498 return Err(SizeError::new(source).into()); in from_bytes_with_elems()
549 None => return Err(SizeError::new(source).into()), in from_prefix_with_elems()
595 None => return Err(SizeError::new(source).into()), in from_suffix_with_elems()
600 return Err(SizeError::new(source).into()); in from_suffix_with_elems()