Searched refs:from_prefix_with_elems (Results 1 – 2 of 2) sorted by relevance
| /linux/rust/zerocopy/src/ |
| H A D | ref.rs | 542 pub fn from_prefix_with_elems( in from_prefix_with_elems() function 1132 let (r, suffix) = Ref::<_, [AU64]>::from_prefix_with_elems(&mut buf.t[..], 1).unwrap(); in test_new_aligned_sized() 1203 assert!(Ref::<_, [AU64]>::from_prefix_with_elems(&buf.t[..], n).is_err()); in test_new_error() 1204 assert!(Ref::<_, [AU64]>::from_prefix_with_elems(&buf.t[..], 2).is_err()); in test_new_error() 1219 assert!(Ref::<_, [AU64]>::from_prefix_with_elems(&buf.t[1..], 1).is_err()); in test_new_error() 1229 assert!(Ref::<_, [AU64]>::from_prefix_with_elems(&buf.t[..], unreasonable_len).is_err()); in test_new_error()
|
| H A D | deprecated.rs | 175 Ref::from_prefix_with_elems(bytes, count).ok() in new_slice_from_prefix() 200 Ref::from_prefix_with_elems(bytes, count).ok() in new_slice_unaligned_from_prefix()
|