Searched refs:try_read_from_prefix (Results 1 – 1 of 1) sorted by relevance
| /linux/rust/zerocopy/src/ |
| H A D | lib.rs | 3200 fn try_read_from_prefix(source: &[u8]) -> Result<(Self, &[u8]), TryReadError<&[u8], Self>> in try_read_from_prefix() method 7088 assert_eq!(<bool as TryFromBytes>::try_read_from_prefix(&[0, 2]), Ok((false, &[2][..]))); in test_try_from_bytes_try_read_from() 7089 assert_eq!(<bool as TryFromBytes>::try_read_from_prefix(&[1, 2]), Ok((true, &[2][..]))); in test_try_from_bytes_try_read_from() 7100 <u8 as TryFromBytes>::try_read_from_prefix(&[]), in test_try_from_bytes_try_read_from() 7120 <bool as TryFromBytes>::try_read_from_prefix(&[2, 0]), in test_try_from_bytes_try_read_from() 7137 <AU64 as TryFromBytes>::try_read_from_prefix(&bytes[..8]), in test_try_from_bytes_try_read_from() 7141 <AU64 as TryFromBytes>::try_read_from_prefix(&bytes[1..9]), in test_try_from_bytes_try_read_from()
|