Home
last modified time | relevance | path

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

/linux/rust/zerocopy/src/
H A Dref.rs741 pub fn bytes_mut(r: &mut Self) -> &mut [u8] { in bytes_mut() function
1052 Ref::bytes_mut(&mut r).copy_from_slice(&VAL2.to_bytes()[..]); in test_new_helper()
1080 Ref::bytes_mut(&mut r).copy_from_slice(&VAL2.0.to_ne_bytes().repeat(typed_len)); in test_new_helper_slice()
H A Dimpls.rs1844 let bytes_mut = &mut vec.as_mut_slice()[offset..offset+size]; in test_impls() localVariable
1845 bytes_mut.copy_from_slice(bytes); in test_impls()
1847 let res = ww.test_try_from_mut(bytes_mut); in test_impls()