Lines Matching refs:ValidityError
590 pub struct ValidityError<Src, Dst: ?Sized + TryFromBytes> { struct
597 impl<Src, Dst: ?Sized + TryFromBytes> ValidityError<Src, Dst> { argument
629 pub fn map_src<NewSrc>(self, f: impl FnOnce(Src) -> NewSrc) -> ValidityError<NewSrc, Dst> { in map_src()
630 ValidityError { src: f(self.src), _dst: SendSyncPhantomData::default() } in map_src()
651 impl<Src: Clone, Dst: ?Sized + TryFromBytes> Clone for ValidityError<Src, Dst> { implementation
661 for crate::ValidityError<Src, Dst>
666 type Mapped = crate::ValidityError<NewSrc, Dst>;
673 impl<Src: PartialEq, Dst: ?Sized + TryFromBytes> PartialEq for ValidityError<Src, Dst> { implementation
680 impl<Src: Eq, Dst: ?Sized + TryFromBytes> Eq for ValidityError<Src, Dst> {} implementation
682 impl<Src, Dst: ?Sized + TryFromBytes> fmt::Debug for ValidityError<Src, Dst> { implementation
694 impl<Src, Dst: ?Sized> fmt::Display for ValidityError<Src, Dst> implementation
711 impl<Src, Dst: ?Sized> Error for ValidityError<Src, Dst> where Dst: KnownLayout + TryFromBytes {} implementation
713 impl<Src, Dst: ?Sized + TryFromBytes, A, S> From<ValidityError<Src, Dst>>
714 for ConvertError<A, S, ValidityError<Src, Dst>>
717 fn from(err: ValidityError<Src, Dst>) -> Self { in from()
872 ConvertError<AlignmentError<Src, Dst>, SizeError<Src, Dst>, ValidityError<Src, Dst>>;
941 ConvertError<Infallible, SizeError<Src, Dst>, ValidityError<Src, Dst>>;
1022 ConvertError<Infallible, SizeError<Src, Dst>, ValidityError<Src, Dst>>;
1064 err: ValidityError<Src, Dst>, in test_send_sync()
1074 ValidityError<Src, Dst>, in test_send_sync()
1106 err: ValidityError<Src, Dst>, in test_eq_partial_eq_clone()
1116 ValidityError<Src, Dst>, in test_eq_partial_eq_clone()
1202 ValidityError::<_, bool>::new(&[2u8; 1][..]).to_string(), in validity_display()
1214 ValidityError<&[u8], bool>, in test_convert_error_debug()
1221 ValidityError<&[u8], bool>, in test_convert_error_debug()
1228 ValidityError<&[u8], bool>, in test_convert_error_debug()
1229 > = ConvertError::Validity(ValidityError::new(&[0u8])); in test_convert_error_debug()
1239 ValidityError<&[u8], bool>, in test_convert_error_from_unaligned()
1241 let converted: ConvertError<Infallible, SizeError<&[u8], u8>, ValidityError<&[u8], bool>> = in test_convert_error_from_unaligned()
1265 let err: ValidityError<&[u8], bool> = ValidityError::new(&[0u8]); in test_validity_error_display_debug()
1275 ValidityError<&[u8], bool>, in test_convert_error_display_debug_more()
1282 ValidityError<&[u8], bool>, in test_convert_error_display_debug_more()
1289 ValidityError<&[u8], bool>, in test_convert_error_display_debug_more()
1290 > = ConvertError::Validity(ValidityError::new(&[0u8])); in test_convert_error_display_debug_more()
1306 ValidityError<&[u8], bool>, in test_alignment_error_methods()
1329 ValidityError<&[u8], bool>, in test_convert_error_from_unaligned_variants()
1330 > = ConvertError::Validity(ValidityError::new(&[0u8])); in test_convert_error_from_unaligned_variants()
1331 let converted: ConvertError<Infallible, SizeError<&[u8], u8>, ValidityError<&[u8], bool>> = in test_convert_error_from_unaligned_variants()
1341 ValidityError<&[u8], bool>, in test_convert_error_from_unaligned_variants()
1343 let converted: ConvertError<Infallible, SizeError<&[u8], u8>, ValidityError<&[u8], bool>> = in test_convert_error_from_unaligned_variants()