pub trait CheckBytes<C>where
C: ?Sized,{
type Error: Error + 'static;
// Required method
unsafe fn check_bytes<'a>(
value: *const Self,
context: &mut C,
) -> Result<&'a Self, Self::Error>;
}Expand description
A type that can check whether a pointer points to a valid value.
CheckBytes can be derived with CheckBytes or
implemented manually for custom behavior.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementations on Foreign Types§
Source§impl<C> CheckBytes<C> for boolwhere
C: ?Sized,
impl<C> CheckBytes<C> for boolwhere
C: ?Sized,
type Error = BoolCheckError
unsafe fn check_bytes<'a>( value: *const bool, _: &mut C, ) -> Result<&'a bool, <bool as CheckBytes<C>>::Error>
Source§impl<C> CheckBytes<C> for charwhere
C: ?Sized,
impl<C> CheckBytes<C> for charwhere
C: ?Sized,
type Error = CharCheckError
unsafe fn check_bytes<'a>( value: *const char, context: &mut C, ) -> Result<&'a char, <char as CheckBytes<C>>::Error>
Source§impl<C> CheckBytes<C> for f32where
C: ?Sized,
impl<C> CheckBytes<C> for f32where
C: ?Sized,
type Error = Infallible
unsafe fn check_bytes<'a>( value: *const f32, _: &mut C, ) -> Result<&'a f32, <f32 as CheckBytes<C>>::Error>
Source§impl<C> CheckBytes<C> for f64where
C: ?Sized,
impl<C> CheckBytes<C> for f64where
C: ?Sized,
type Error = Infallible
unsafe fn check_bytes<'a>( value: *const f64, _: &mut C, ) -> Result<&'a f64, <f64 as CheckBytes<C>>::Error>
Source§impl<C> CheckBytes<C> for i8where
C: ?Sized,
impl<C> CheckBytes<C> for i8where
C: ?Sized,
type Error = Infallible
unsafe fn check_bytes<'a>( value: *const i8, _: &mut C, ) -> Result<&'a i8, <i8 as CheckBytes<C>>::Error>
Source§impl<C> CheckBytes<C> for i16where
C: ?Sized,
impl<C> CheckBytes<C> for i16where
C: ?Sized,
type Error = Infallible
unsafe fn check_bytes<'a>( value: *const i16, _: &mut C, ) -> Result<&'a i16, <i16 as CheckBytes<C>>::Error>
Source§impl<C> CheckBytes<C> for i32where
C: ?Sized,
impl<C> CheckBytes<C> for i32where
C: ?Sized,
type Error = Infallible
unsafe fn check_bytes<'a>( value: *const i32, _: &mut C, ) -> Result<&'a i32, <i32 as CheckBytes<C>>::Error>
Source§impl<C> CheckBytes<C> for i64where
C: ?Sized,
impl<C> CheckBytes<C> for i64where
C: ?Sized,
type Error = Infallible
unsafe fn check_bytes<'a>( value: *const i64, _: &mut C, ) -> Result<&'a i64, <i64 as CheckBytes<C>>::Error>
Source§impl<C> CheckBytes<C> for i128where
C: ?Sized,
impl<C> CheckBytes<C> for i128where
C: ?Sized,
type Error = Infallible
unsafe fn check_bytes<'a>( value: *const i128, _: &mut C, ) -> Result<&'a i128, <i128 as CheckBytes<C>>::Error>
Source§impl<C> CheckBytes<C> for strwhere
C: ?Sized,
impl<C> CheckBytes<C> for strwhere
C: ?Sized,
type Error = StrCheckError
unsafe fn check_bytes<'a>( value: *const str, _: &mut C, ) -> Result<&'a str, <str as CheckBytes<C>>::Error>
Source§impl<C> CheckBytes<C> for u8where
C: ?Sized,
impl<C> CheckBytes<C> for u8where
C: ?Sized,
type Error = Infallible
unsafe fn check_bytes<'a>( value: *const u8, _: &mut C, ) -> Result<&'a u8, <u8 as CheckBytes<C>>::Error>
Source§impl<C> CheckBytes<C> for u16where
C: ?Sized,
impl<C> CheckBytes<C> for u16where
C: ?Sized,
type Error = Infallible
unsafe fn check_bytes<'a>( value: *const u16, _: &mut C, ) -> Result<&'a u16, <u16 as CheckBytes<C>>::Error>
Source§impl<C> CheckBytes<C> for u32where
C: ?Sized,
impl<C> CheckBytes<C> for u32where
C: ?Sized,
type Error = Infallible
unsafe fn check_bytes<'a>( value: *const u32, _: &mut C, ) -> Result<&'a u32, <u32 as CheckBytes<C>>::Error>
Source§impl<C> CheckBytes<C> for u64where
C: ?Sized,
impl<C> CheckBytes<C> for u64where
C: ?Sized,
type Error = Infallible
unsafe fn check_bytes<'a>( value: *const u64, _: &mut C, ) -> Result<&'a u64, <u64 as CheckBytes<C>>::Error>
Source§impl<C> CheckBytes<C> for u128where
C: ?Sized,
impl<C> CheckBytes<C> for u128where
C: ?Sized,
type Error = Infallible
unsafe fn check_bytes<'a>( value: *const u128, _: &mut C, ) -> Result<&'a u128, <u128 as CheckBytes<C>>::Error>
Source§impl<C> CheckBytes<C> for ()where
C: ?Sized,
impl<C> CheckBytes<C> for ()where
C: ?Sized,
type Error = Infallible
unsafe fn check_bytes<'a>( value: *const (), _: &mut C, ) -> Result<&'a (), <() as CheckBytes<C>>::Error>
Source§impl<C> CheckBytes<C> for LittleEndian<char>where
C: ?Sized,
impl<C> CheckBytes<C> for LittleEndian<char>where
C: ?Sized,
type Error = CharCheckError
unsafe fn check_bytes<'a>( value: *const LittleEndian<char>, context: &mut C, ) -> Result<&'a LittleEndian<char>, <LittleEndian<char> as CheckBytes<C>>::Error>
Source§impl<C> CheckBytes<C> for LittleEndian<f32>where
C: ?Sized,
impl<C> CheckBytes<C> for LittleEndian<f32>where
C: ?Sized,
type Error = Infallible
unsafe fn check_bytes<'a>( value: *const LittleEndian<f32>, _: &mut C, ) -> Result<&'a LittleEndian<f32>, <LittleEndian<f32> as CheckBytes<C>>::Error>
Source§impl<C> CheckBytes<C> for LittleEndian<f64>where
C: ?Sized,
impl<C> CheckBytes<C> for LittleEndian<f64>where
C: ?Sized,
type Error = Infallible
unsafe fn check_bytes<'a>( value: *const LittleEndian<f64>, _: &mut C, ) -> Result<&'a LittleEndian<f64>, <LittleEndian<f64> as CheckBytes<C>>::Error>
Source§impl<C> CheckBytes<C> for LittleEndian<i16>where
C: ?Sized,
impl<C> CheckBytes<C> for LittleEndian<i16>where
C: ?Sized,
type Error = Infallible
unsafe fn check_bytes<'a>( value: *const LittleEndian<i16>, _: &mut C, ) -> Result<&'a LittleEndian<i16>, <LittleEndian<i16> as CheckBytes<C>>::Error>
Source§impl<C> CheckBytes<C> for LittleEndian<i32>where
C: ?Sized,
impl<C> CheckBytes<C> for LittleEndian<i32>where
C: ?Sized,
type Error = Infallible
unsafe fn check_bytes<'a>( value: *const LittleEndian<i32>, _: &mut C, ) -> Result<&'a LittleEndian<i32>, <LittleEndian<i32> as CheckBytes<C>>::Error>
Source§impl<C> CheckBytes<C> for LittleEndian<i64>where
C: ?Sized,
impl<C> CheckBytes<C> for LittleEndian<i64>where
C: ?Sized,
type Error = Infallible
unsafe fn check_bytes<'a>( value: *const LittleEndian<i64>, _: &mut C, ) -> Result<&'a LittleEndian<i64>, <LittleEndian<i64> as CheckBytes<C>>::Error>
Source§impl<C> CheckBytes<C> for LittleEndian<i128>where
C: ?Sized,
impl<C> CheckBytes<C> for LittleEndian<i128>where
C: ?Sized,
type Error = Infallible
unsafe fn check_bytes<'a>( value: *const LittleEndian<i128>, _: &mut C, ) -> Result<&'a LittleEndian<i128>, <LittleEndian<i128> as CheckBytes<C>>::Error>
Source§impl<C> CheckBytes<C> for LittleEndian<u16>where
C: ?Sized,
impl<C> CheckBytes<C> for LittleEndian<u16>where
C: ?Sized,
type Error = Infallible
unsafe fn check_bytes<'a>( value: *const LittleEndian<u16>, _: &mut C, ) -> Result<&'a LittleEndian<u16>, <LittleEndian<u16> as CheckBytes<C>>::Error>
Source§impl<C> CheckBytes<C> for LittleEndian<u32>where
C: ?Sized,
impl<C> CheckBytes<C> for LittleEndian<u32>where
C: ?Sized,
type Error = Infallible
unsafe fn check_bytes<'a>( value: *const LittleEndian<u32>, _: &mut C, ) -> Result<&'a LittleEndian<u32>, <LittleEndian<u32> as CheckBytes<C>>::Error>
Source§impl<C> CheckBytes<C> for LittleEndian<u64>where
C: ?Sized,
impl<C> CheckBytes<C> for LittleEndian<u64>where
C: ?Sized,
type Error = Infallible
unsafe fn check_bytes<'a>( value: *const LittleEndian<u64>, _: &mut C, ) -> Result<&'a LittleEndian<u64>, <LittleEndian<u64> as CheckBytes<C>>::Error>
Source§impl<C> CheckBytes<C> for LittleEndian<u128>where
C: ?Sized,
impl<C> CheckBytes<C> for LittleEndian<u128>where
C: ?Sized,
type Error = Infallible
unsafe fn check_bytes<'a>( value: *const LittleEndian<u128>, _: &mut C, ) -> Result<&'a LittleEndian<u128>, <LittleEndian<u128> as CheckBytes<C>>::Error>
Source§impl<C> CheckBytes<C> for LittleEndian<NonZero<i16>>where
C: ?Sized,
impl<C> CheckBytes<C> for LittleEndian<NonZero<i16>>where
C: ?Sized,
type Error = NonZeroCheckError
unsafe fn check_bytes<'a>( value: *const LittleEndian<NonZero<i16>>, context: &mut C, ) -> Result<&'a LittleEndian<NonZero<i16>>, <LittleEndian<NonZero<i16>> as CheckBytes<C>>::Error>
Source§impl<C> CheckBytes<C> for LittleEndian<NonZero<i32>>where
C: ?Sized,
impl<C> CheckBytes<C> for LittleEndian<NonZero<i32>>where
C: ?Sized,
type Error = NonZeroCheckError
unsafe fn check_bytes<'a>( value: *const LittleEndian<NonZero<i32>>, context: &mut C, ) -> Result<&'a LittleEndian<NonZero<i32>>, <LittleEndian<NonZero<i32>> as CheckBytes<C>>::Error>
Source§impl<C> CheckBytes<C> for LittleEndian<NonZero<i64>>where
C: ?Sized,
impl<C> CheckBytes<C> for LittleEndian<NonZero<i64>>where
C: ?Sized,
type Error = NonZeroCheckError
unsafe fn check_bytes<'a>( value: *const LittleEndian<NonZero<i64>>, context: &mut C, ) -> Result<&'a LittleEndian<NonZero<i64>>, <LittleEndian<NonZero<i64>> as CheckBytes<C>>::Error>
Source§impl<C> CheckBytes<C> for LittleEndian<NonZero<i128>>where
C: ?Sized,
impl<C> CheckBytes<C> for LittleEndian<NonZero<i128>>where
C: ?Sized,
type Error = NonZeroCheckError
unsafe fn check_bytes<'a>( value: *const LittleEndian<NonZero<i128>>, context: &mut C, ) -> Result<&'a LittleEndian<NonZero<i128>>, <LittleEndian<NonZero<i128>> as CheckBytes<C>>::Error>
Source§impl<C> CheckBytes<C> for LittleEndian<NonZero<u16>>where
C: ?Sized,
impl<C> CheckBytes<C> for LittleEndian<NonZero<u16>>where
C: ?Sized,
type Error = NonZeroCheckError
unsafe fn check_bytes<'a>( value: *const LittleEndian<NonZero<u16>>, context: &mut C, ) -> Result<&'a LittleEndian<NonZero<u16>>, <LittleEndian<NonZero<u16>> as CheckBytes<C>>::Error>
Source§impl<C> CheckBytes<C> for LittleEndian<NonZero<u32>>where
C: ?Sized,
impl<C> CheckBytes<C> for LittleEndian<NonZero<u32>>where
C: ?Sized,
type Error = NonZeroCheckError
unsafe fn check_bytes<'a>( value: *const LittleEndian<NonZero<u32>>, context: &mut C, ) -> Result<&'a LittleEndian<NonZero<u32>>, <LittleEndian<NonZero<u32>> as CheckBytes<C>>::Error>
Source§impl<C> CheckBytes<C> for LittleEndian<NonZero<u64>>where
C: ?Sized,
impl<C> CheckBytes<C> for LittleEndian<NonZero<u64>>where
C: ?Sized,
type Error = NonZeroCheckError
unsafe fn check_bytes<'a>( value: *const LittleEndian<NonZero<u64>>, context: &mut C, ) -> Result<&'a LittleEndian<NonZero<u64>>, <LittleEndian<NonZero<u64>> as CheckBytes<C>>::Error>
Source§impl<C> CheckBytes<C> for LittleEndian<NonZero<u128>>where
C: ?Sized,
impl<C> CheckBytes<C> for LittleEndian<NonZero<u128>>where
C: ?Sized,
type Error = NonZeroCheckError
unsafe fn check_bytes<'a>( value: *const LittleEndian<NonZero<u128>>, context: &mut C, ) -> Result<&'a LittleEndian<NonZero<u128>>, <LittleEndian<NonZero<u128>> as CheckBytes<C>>::Error>
Source§impl<C> CheckBytes<C> for LittleEndian<AtomicI16>where
C: ?Sized,
impl<C> CheckBytes<C> for LittleEndian<AtomicI16>where
C: ?Sized,
type Error = Infallible
unsafe fn check_bytes<'a>( value: *const LittleEndian<AtomicI16>, _: &mut C, ) -> Result<&'a LittleEndian<AtomicI16>, <LittleEndian<AtomicI16> as CheckBytes<C>>::Error>
Source§impl<C> CheckBytes<C> for LittleEndian<AtomicI32>where
C: ?Sized,
impl<C> CheckBytes<C> for LittleEndian<AtomicI32>where
C: ?Sized,
type Error = Infallible
unsafe fn check_bytes<'a>( value: *const LittleEndian<AtomicI32>, _: &mut C, ) -> Result<&'a LittleEndian<AtomicI32>, <LittleEndian<AtomicI32> as CheckBytes<C>>::Error>
Source§impl<C> CheckBytes<C> for LittleEndian<AtomicI64>where
C: ?Sized,
impl<C> CheckBytes<C> for LittleEndian<AtomicI64>where
C: ?Sized,
type Error = Infallible
unsafe fn check_bytes<'a>( value: *const LittleEndian<AtomicI64>, _: &mut C, ) -> Result<&'a LittleEndian<AtomicI64>, <LittleEndian<AtomicI64> as CheckBytes<C>>::Error>
Source§impl<C> CheckBytes<C> for LittleEndian<AtomicU16>where
C: ?Sized,
impl<C> CheckBytes<C> for LittleEndian<AtomicU16>where
C: ?Sized,
type Error = Infallible
unsafe fn check_bytes<'a>( value: *const LittleEndian<AtomicU16>, _: &mut C, ) -> Result<&'a LittleEndian<AtomicU16>, <LittleEndian<AtomicU16> as CheckBytes<C>>::Error>
Source§impl<C> CheckBytes<C> for LittleEndian<AtomicU32>where
C: ?Sized,
impl<C> CheckBytes<C> for LittleEndian<AtomicU32>where
C: ?Sized,
type Error = Infallible
unsafe fn check_bytes<'a>( value: *const LittleEndian<AtomicU32>, _: &mut C, ) -> Result<&'a LittleEndian<AtomicU32>, <LittleEndian<AtomicU32> as CheckBytes<C>>::Error>
Source§impl<C> CheckBytes<C> for LittleEndian<AtomicU64>where
C: ?Sized,
impl<C> CheckBytes<C> for LittleEndian<AtomicU64>where
C: ?Sized,
type Error = Infallible
unsafe fn check_bytes<'a>( value: *const LittleEndian<AtomicU64>, _: &mut C, ) -> Result<&'a LittleEndian<AtomicU64>, <LittleEndian<AtomicU64> as CheckBytes<C>>::Error>
Source§impl<C> CheckBytes<C> for NativeEndian<char>where
C: ?Sized,
impl<C> CheckBytes<C> for NativeEndian<char>where
C: ?Sized,
type Error = CharCheckError
unsafe fn check_bytes<'a>( value: *const NativeEndian<char>, context: &mut C, ) -> Result<&'a NativeEndian<char>, <NativeEndian<char> as CheckBytes<C>>::Error>
Source§impl<C> CheckBytes<C> for NativeEndian<f32>where
C: ?Sized,
impl<C> CheckBytes<C> for NativeEndian<f32>where
C: ?Sized,
type Error = Infallible
unsafe fn check_bytes<'a>( value: *const NativeEndian<f32>, _: &mut C, ) -> Result<&'a NativeEndian<f32>, <NativeEndian<f32> as CheckBytes<C>>::Error>
Source§impl<C> CheckBytes<C> for NativeEndian<f64>where
C: ?Sized,
impl<C> CheckBytes<C> for NativeEndian<f64>where
C: ?Sized,
type Error = Infallible
unsafe fn check_bytes<'a>( value: *const NativeEndian<f64>, _: &mut C, ) -> Result<&'a NativeEndian<f64>, <NativeEndian<f64> as CheckBytes<C>>::Error>
Source§impl<C> CheckBytes<C> for NativeEndian<i16>where
C: ?Sized,
impl<C> CheckBytes<C> for NativeEndian<i16>where
C: ?Sized,
type Error = Infallible
unsafe fn check_bytes<'a>( value: *const NativeEndian<i16>, _: &mut C, ) -> Result<&'a NativeEndian<i16>, <NativeEndian<i16> as CheckBytes<C>>::Error>
Source§impl<C> CheckBytes<C> for NativeEndian<i32>where
C: ?Sized,
impl<C> CheckBytes<C> for NativeEndian<i32>where
C: ?Sized,
type Error = Infallible
unsafe fn check_bytes<'a>( value: *const NativeEndian<i32>, _: &mut C, ) -> Result<&'a NativeEndian<i32>, <NativeEndian<i32> as CheckBytes<C>>::Error>
Source§impl<C> CheckBytes<C> for NativeEndian<i64>where
C: ?Sized,
impl<C> CheckBytes<C> for NativeEndian<i64>where
C: ?Sized,
type Error = Infallible
unsafe fn check_bytes<'a>( value: *const NativeEndian<i64>, _: &mut C, ) -> Result<&'a NativeEndian<i64>, <NativeEndian<i64> as CheckBytes<C>>::Error>
Source§impl<C> CheckBytes<C> for NativeEndian<i128>where
C: ?Sized,
impl<C> CheckBytes<C> for NativeEndian<i128>where
C: ?Sized,
type Error = Infallible
unsafe fn check_bytes<'a>( value: *const NativeEndian<i128>, _: &mut C, ) -> Result<&'a NativeEndian<i128>, <NativeEndian<i128> as CheckBytes<C>>::Error>
Source§impl<C> CheckBytes<C> for NativeEndian<u16>where
C: ?Sized,
impl<C> CheckBytes<C> for NativeEndian<u16>where
C: ?Sized,
type Error = Infallible
unsafe fn check_bytes<'a>( value: *const NativeEndian<u16>, _: &mut C, ) -> Result<&'a NativeEndian<u16>, <NativeEndian<u16> as CheckBytes<C>>::Error>
Source§impl<C> CheckBytes<C> for NativeEndian<u32>where
C: ?Sized,
impl<C> CheckBytes<C> for NativeEndian<u32>where
C: ?Sized,
type Error = Infallible
unsafe fn check_bytes<'a>( value: *const NativeEndian<u32>, _: &mut C, ) -> Result<&'a NativeEndian<u32>, <NativeEndian<u32> as CheckBytes<C>>::Error>
Source§impl<C> CheckBytes<C> for NativeEndian<u64>where
C: ?Sized,
impl<C> CheckBytes<C> for NativeEndian<u64>where
C: ?Sized,
type Error = Infallible
unsafe fn check_bytes<'a>( value: *const NativeEndian<u64>, _: &mut C, ) -> Result<&'a NativeEndian<u64>, <NativeEndian<u64> as CheckBytes<C>>::Error>
Source§impl<C> CheckBytes<C> for NativeEndian<u128>where
C: ?Sized,
impl<C> CheckBytes<C> for NativeEndian<u128>where
C: ?Sized,
type Error = Infallible
unsafe fn check_bytes<'a>( value: *const NativeEndian<u128>, _: &mut C, ) -> Result<&'a NativeEndian<u128>, <NativeEndian<u128> as CheckBytes<C>>::Error>
Source§impl<C> CheckBytes<C> for NativeEndian<NonZero<i16>>where
C: ?Sized,
impl<C> CheckBytes<C> for NativeEndian<NonZero<i16>>where
C: ?Sized,
type Error = NonZeroCheckError
unsafe fn check_bytes<'a>( value: *const NativeEndian<NonZero<i16>>, context: &mut C, ) -> Result<&'a NativeEndian<NonZero<i16>>, <NativeEndian<NonZero<i16>> as CheckBytes<C>>::Error>
Source§impl<C> CheckBytes<C> for NativeEndian<NonZero<i32>>where
C: ?Sized,
impl<C> CheckBytes<C> for NativeEndian<NonZero<i32>>where
C: ?Sized,
type Error = NonZeroCheckError
unsafe fn check_bytes<'a>( value: *const NativeEndian<NonZero<i32>>, context: &mut C, ) -> Result<&'a NativeEndian<NonZero<i32>>, <NativeEndian<NonZero<i32>> as CheckBytes<C>>::Error>
Source§impl<C> CheckBytes<C> for NativeEndian<NonZero<i64>>where
C: ?Sized,
impl<C> CheckBytes<C> for NativeEndian<NonZero<i64>>where
C: ?Sized,
type Error = NonZeroCheckError
unsafe fn check_bytes<'a>( value: *const NativeEndian<NonZero<i64>>, context: &mut C, ) -> Result<&'a NativeEndian<NonZero<i64>>, <NativeEndian<NonZero<i64>> as CheckBytes<C>>::Error>
Source§impl<C> CheckBytes<C> for NativeEndian<NonZero<i128>>where
C: ?Sized,
impl<C> CheckBytes<C> for NativeEndian<NonZero<i128>>where
C: ?Sized,
type Error = NonZeroCheckError
unsafe fn check_bytes<'a>( value: *const NativeEndian<NonZero<i128>>, context: &mut C, ) -> Result<&'a NativeEndian<NonZero<i128>>, <NativeEndian<NonZero<i128>> as CheckBytes<C>>::Error>
Source§impl<C> CheckBytes<C> for NativeEndian<NonZero<u16>>where
C: ?Sized,
impl<C> CheckBytes<C> for NativeEndian<NonZero<u16>>where
C: ?Sized,
type Error = NonZeroCheckError
unsafe fn check_bytes<'a>( value: *const NativeEndian<NonZero<u16>>, context: &mut C, ) -> Result<&'a NativeEndian<NonZero<u16>>, <NativeEndian<NonZero<u16>> as CheckBytes<C>>::Error>
Source§impl<C> CheckBytes<C> for NativeEndian<NonZero<u32>>where
C: ?Sized,
impl<C> CheckBytes<C> for NativeEndian<NonZero<u32>>where
C: ?Sized,
type Error = NonZeroCheckError
unsafe fn check_bytes<'a>( value: *const NativeEndian<NonZero<u32>>, context: &mut C, ) -> Result<&'a NativeEndian<NonZero<u32>>, <NativeEndian<NonZero<u32>> as CheckBytes<C>>::Error>
Source§impl<C> CheckBytes<C> for NativeEndian<NonZero<u64>>where
C: ?Sized,
impl<C> CheckBytes<C> for NativeEndian<NonZero<u64>>where
C: ?Sized,
type Error = NonZeroCheckError
unsafe fn check_bytes<'a>( value: *const NativeEndian<NonZero<u64>>, context: &mut C, ) -> Result<&'a NativeEndian<NonZero<u64>>, <NativeEndian<NonZero<u64>> as CheckBytes<C>>::Error>
Source§impl<C> CheckBytes<C> for NativeEndian<NonZero<u128>>where
C: ?Sized,
impl<C> CheckBytes<C> for NativeEndian<NonZero<u128>>where
C: ?Sized,
type Error = NonZeroCheckError
unsafe fn check_bytes<'a>( value: *const NativeEndian<NonZero<u128>>, context: &mut C, ) -> Result<&'a NativeEndian<NonZero<u128>>, <NativeEndian<NonZero<u128>> as CheckBytes<C>>::Error>
Source§impl<C> CheckBytes<C> for NativeEndian<AtomicI16>where
C: ?Sized,
impl<C> CheckBytes<C> for NativeEndian<AtomicI16>where
C: ?Sized,
type Error = Infallible
unsafe fn check_bytes<'a>( value: *const NativeEndian<AtomicI16>, _: &mut C, ) -> Result<&'a NativeEndian<AtomicI16>, <NativeEndian<AtomicI16> as CheckBytes<C>>::Error>
Source§impl<C> CheckBytes<C> for NativeEndian<AtomicI32>where
C: ?Sized,
impl<C> CheckBytes<C> for NativeEndian<AtomicI32>where
C: ?Sized,
type Error = Infallible
unsafe fn check_bytes<'a>( value: *const NativeEndian<AtomicI32>, _: &mut C, ) -> Result<&'a NativeEndian<AtomicI32>, <NativeEndian<AtomicI32> as CheckBytes<C>>::Error>
Source§impl<C> CheckBytes<C> for NativeEndian<AtomicI64>where
C: ?Sized,
impl<C> CheckBytes<C> for NativeEndian<AtomicI64>where
C: ?Sized,
type Error = Infallible
unsafe fn check_bytes<'a>( value: *const NativeEndian<AtomicI64>, _: &mut C, ) -> Result<&'a NativeEndian<AtomicI64>, <NativeEndian<AtomicI64> as CheckBytes<C>>::Error>
Source§impl<C> CheckBytes<C> for NativeEndian<AtomicU16>where
C: ?Sized,
impl<C> CheckBytes<C> for NativeEndian<AtomicU16>where
C: ?Sized,
type Error = Infallible
unsafe fn check_bytes<'a>( value: *const NativeEndian<AtomicU16>, _: &mut C, ) -> Result<&'a NativeEndian<AtomicU16>, <NativeEndian<AtomicU16> as CheckBytes<C>>::Error>
Source§impl<C> CheckBytes<C> for NativeEndian<AtomicU32>where
C: ?Sized,
impl<C> CheckBytes<C> for NativeEndian<AtomicU32>where
C: ?Sized,
type Error = Infallible
unsafe fn check_bytes<'a>( value: *const NativeEndian<AtomicU32>, _: &mut C, ) -> Result<&'a NativeEndian<AtomicU32>, <NativeEndian<AtomicU32> as CheckBytes<C>>::Error>
Source§impl<C> CheckBytes<C> for NativeEndian<AtomicU64>where
C: ?Sized,
impl<C> CheckBytes<C> for NativeEndian<AtomicU64>where
C: ?Sized,
type Error = Infallible
unsafe fn check_bytes<'a>( value: *const NativeEndian<AtomicU64>, _: &mut C, ) -> Result<&'a NativeEndian<AtomicU64>, <NativeEndian<AtomicU64> as CheckBytes<C>>::Error>
Source§impl<C> CheckBytes<C> for CStrwhere
C: ?Sized,
Available on crate feature std only.
impl<C> CheckBytes<C> for CStrwhere
C: ?Sized,
Available on crate feature
std only.type Error = CStrCheckError
unsafe fn check_bytes<'a>( value: *const CStr, _: &mut C, ) -> Result<&'a CStr, <CStr as CheckBytes<C>>::Error>
Source§impl<C> CheckBytes<C> for PhantomPinnedwhere
C: ?Sized,
impl<C> CheckBytes<C> for PhantomPinnedwhere
C: ?Sized,
type Error = Infallible
unsafe fn check_bytes<'a>( value: *const PhantomPinned, _: &mut C, ) -> Result<&'a PhantomPinned, <PhantomPinned as CheckBytes<C>>::Error>
Source§impl<C> CheckBytes<C> for RangeFullwhere
C: ?Sized,
impl<C> CheckBytes<C> for RangeFullwhere
C: ?Sized,
type Error = Infallible
unsafe fn check_bytes<'a>( value: *const RangeFull, _: &mut C, ) -> Result<&'a RangeFull, <RangeFull as CheckBytes<C>>::Error>
Source§impl<C> CheckBytes<C> for AtomicBoolwhere
C: ?Sized,
Available on has_atomics only.
impl<C> CheckBytes<C> for AtomicBoolwhere
C: ?Sized,
Available on
has_atomics only.