Lines Matching refs:CastError

4155     fn ref_from_bytes(source: &[u8]) -> Result<&Self, CastError<&[u8], Self>>  in ref_from_bytes()
4267 fn ref_from_prefix(source: &[u8]) -> Result<(&Self, &[u8]), CastError<&[u8], Self>> in ref_from_prefix()
4361 fn ref_from_suffix(source: &[u8]) -> Result<(&[u8], &Self), CastError<&[u8], Self>> in ref_from_suffix()
4445 fn mut_from_bytes(source: &mut [u8]) -> Result<&mut Self, CastError<&mut [u8], Self>> in mut_from_bytes()
4538 ) -> Result<(&mut Self, &mut [u8]), CastError<&mut [u8], Self>> in mut_from_prefix()
4619 ) -> Result<(&mut [u8], &mut Self), CastError<&mut [u8], Self>> in mut_from_suffix()
4712 ) -> Result<&Self, CastError<&[u8], Self>> in ref_from_bytes_with_elems()
4811 ) -> Result<(&Self, &[u8]), CastError<&[u8], Self>> in ref_from_prefix_with_elems()
4905 ) -> Result<(&[u8], &Self), CastError<&[u8], Self>> in ref_from_suffix_with_elems()
4986 ) -> Result<&mut Self, CastError<&mut [u8], Self>> in mut_from_bytes_with_elems()
5076 ) -> Result<(&mut Self, &mut [u8]), CastError<&mut [u8], Self>> in mut_from_prefix_with_elems()
5161 ) -> Result<(&mut [u8], &mut Self), CastError<&mut [u8], Self>> in mut_from_suffix_with_elems()
5212 Err(CastError::Size(e)) => Err(e.with_dst()), in read_from_bytes()
5213 Err(CastError::Alignment(_)) => { in read_from_bytes()
5219 Err(CastError::Validity(i)) => match i {}, in read_from_bytes()
5270 Err(CastError::Size(e)) => Err(e.with_dst()), in read_from_prefix()
5271 Err(CastError::Alignment(_)) => { in read_from_prefix()
5277 Err(CastError::Validity(i)) => match i {}, in read_from_prefix()
5322 Err(CastError::Size(e)) => Err(e.with_dst()), in read_from_suffix()
5323 Err(CastError::Alignment(_)) => { in read_from_suffix()
5329 Err(CastError::Validity(i)) => match i {}, in read_from_suffix()
5479 ) -> Result<(&T, &[u8]), CastError<&[u8], T>> { in ref_from_prefix_suffix()
5499 ) -> Result<(&mut T, &mut [u8]), CastError<&mut [u8], T>> { in mut_from_prefix_suffix()