Lines Matching defs:PodCastError
110 fn something_went_wrong(_src: &str, _err: PodCastError) -> ! { in something_went_wrong()
190 pub fn try_from_bytes<T: Pod>(s: &[u8]) -> Result<&T, PodCastError> { in try_from_bytes() argument
209 ) -> Result<&mut T, PodCastError> { in try_from_bytes_mut() argument
221 pub enum PodCastError { enum
242 impl core::fmt::Display for PodCastError { implementation
248 impl std::error::Error for PodCastError {} implementation
357 pub fn try_cast<A: Pod, B: Pod>(a: A) -> Result<B, PodCastError> { in try_cast() argument
372 pub fn try_cast_ref<A: Pod, B: Pod>(a: &A) -> Result<&B, PodCastError> { in try_cast_ref() argument
390 pub fn try_cast_mut<A: Pod, B: Pod>(a: &mut A) -> Result<&mut B, PodCastError> { in try_cast_mut() argument
420 pub fn try_cast_slice<A: Pod, B: Pod>(a: &[A]) -> Result<&[B], PodCastError> { in try_cast_slice() argument
446 ) -> Result<&mut [B], PodCastError> { in try_cast_slice_mut() argument