Lines Matching refs:SizeError
212 return Err(SizeError::new(bytes).into()); in sized_from()
230 return Err(SizeError::new(bytes).into()); in sized_from_prefix()
237 |b| SizeError::new(b).into(), in sized_from_prefix()
254 return Err(SizeError::new(bytes).into()); in sized_from_suffix()
256 let (prefix, bytes) = bytes.split_at(split_at).map_err(|b| SizeError::new(b).into())?; in sized_from_suffix()
383 let (bytes, suffix) = source.split_at(split_at).map_err(|b| SizeError::new(b).into())?; in from_prefix()
443 let (prefix, bytes) = source.split_at(split_at).map_err(|b| SizeError::new(b).into())?; 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()
551 let (prefix, bytes) = source.split_at(expected_len).map_err(SizeError::new)?; 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()