Lines Matching full:pod
10 /// used in places that otherwise require [`AnyBitPattern`] or [`Pod`] types by
129 /// [`Pod`]: crate::Pod
208 /// An error occurred during a true-[`Pod`] cast
210 /// [`Pod`]: crate::Pod
215 /// between [`Pod`] types.
217 /// [`Pod`]: crate::Pod
248 let pod = crate::try_from_bytes(s)?; in try_from_bytes() localVariable
250 if <T as CheckedBitPattern>::is_valid_bit_pattern(pod) { in try_from_bytes()
251 Ok(unsafe { &*(pod as *const <T as CheckedBitPattern>::Bits as *const T) }) in try_from_bytes()
268 let pod = unsafe { internal::try_from_bytes_mut(s) }?; in try_from_bytes_mut() localVariable
270 if <T as CheckedBitPattern>::is_valid_bit_pattern(pod) { in try_from_bytes_mut()
271 Ok(unsafe { &mut *(pod as *mut <T as CheckedBitPattern>::Bits as *mut T) }) in try_from_bytes_mut()
286 let pod = crate::try_pod_read_unaligned(bytes)?; in try_pod_read_unaligned() localVariable
288 if <T as CheckedBitPattern>::is_valid_bit_pattern(&pod) { in try_pod_read_unaligned()
289 Ok(unsafe { transmute!(pod) }) in try_pod_read_unaligned()
310 let pod = crate::try_cast(a)?; in try_cast() localVariable
312 if <B as CheckedBitPattern>::is_valid_bit_pattern(&pod) { in try_cast()
313 Ok(unsafe { transmute!(pod) }) in try_cast()
330 let pod = crate::try_cast_ref(a)?; in try_cast_ref() localVariable
332 if <B as CheckedBitPattern>::is_valid_bit_pattern(pod) { in try_cast_ref()
333 Ok(unsafe { &*(pod as *const <B as CheckedBitPattern>::Bits as *const B) }) in try_cast_ref()
349 let pod = unsafe { internal::try_cast_mut(a) }?; in try_cast_mut() localVariable
351 if <B as CheckedBitPattern>::is_valid_bit_pattern(pod) { in try_cast_mut()
352 Ok(unsafe { &mut *(pod as *mut <B as CheckedBitPattern>::Bits as *mut B) }) in try_cast_mut()
377 let pod = crate::try_cast_slice(a)?; in try_cast_slice() localVariable
379 if pod.iter().all(|pod| <B as CheckedBitPattern>::is_valid_bit_pattern(pod)) { in try_cast_slice()
381 core::slice::from_raw_parts(pod.as_ptr() as *const B, pod.len()) in try_cast_slice()
399 let pod = unsafe { internal::try_cast_slice_mut(a) }?; in try_cast_slice_mut() localVariable
401 if pod.iter().all(|pod| <B as CheckedBitPattern>::is_valid_bit_pattern(pod)) { in try_cast_slice_mut()
403 core::slice::from_raw_parts_mut(pod.as_mut_ptr() as *mut B, pod.len()) in try_cast_slice_mut()