Searched refs:with_src (Results 1 – 3 of 3) sorted by relevance
215 return Err(err.with_src(bytes).into()); in sized_from()233 return Err(err.with_src(bytes).into()); in sized_from_prefix()258 return Err(err.with_src(bytes).into()); in sized_from_suffix()316 return Err(e.with_src(()).with_src(source)); in from_bytes()372 return Err(e.with_src(()).with_src(source)); in from_prefix()437 let e = e.with_src(()); in from_suffix()438 return Err(e.with_src(source)); in from_suffix()
277 pub(crate) fn with_src<NewSrc>(self, new_src: NewSrc) -> AlignmentError<NewSrc, Dst> { in with_src() method450 pub(crate) fn with_src<NewSrc>(self, new_src: NewSrc) -> SizeError<NewSrc, Dst> { in with_src() method744 pub(crate) fn with_src<NewSrc>(self, new_src: NewSrc) -> CastError<NewSrc, Dst> { in with_src() method746 Self::Alignment(e) => CastError::Alignment(e.with_src(new_src)), in with_src()747 Self::Size(e) => CastError::Size(e.with_src(new_src)), in with_src()
687 return Err(err.with_src(self)); in try_into_aligned()