Home
last modified time | relevance | path

Searched refs:ref_from_prefix (Results 1 – 1 of 1) sorted by relevance

/linux/rust/zerocopy/src/
H A Dlib.rs4267 fn ref_from_prefix(source: &[u8]) -> Result<(&Self, &[u8]), CastError<&[u8], Self>> in ref_from_prefix() method
7183 <[u8; 9]>::ref_from_prefix(&buf.t[..]).unwrap(), in test_ref_from_mut_from_bytes()
7209 assert!(AU64::ref_from_prefix(&buf.t[..]).is_err()); in test_ref_from_mut_from_bytes_error()
7213 assert!(<[u8; 8]>::ref_from_prefix(&buf.t[..]).is_err()); in test_ref_from_mut_from_bytes_error()
7224 assert!(AU64::ref_from_prefix(&buf.t[1..]).is_err()); in test_ref_from_mut_from_bytes_error()