Searched refs:FromBytes (Results 1 – 4 of 4) sorted by relevance
15 pub unsafe trait FromBytes {} trait20 $(unsafe impl$($($generics)*)? FromBytes for $t {})*31 {<T: FromBytes>} [T],32 {<T: FromBytes, const N: usize>} [T; N],
12 transmute::{AsBytes, FromBytes},132 pub struct CoherentAllocation<T: AsBytes + FromBytes> {140 impl<T: AsBytes + FromBytes> CoherentAllocation<T> {247 pub unsafe fn field_read<F: FromBytes>(&self, field: *const F) -> F { in field_read()286 impl<T: AsBytes + FromBytes> Drop for CoherentAllocation<T> {306 unsafe impl<T: AsBytes + FromBytes + Send> Send for CoherentAllocation<T> {}
13 transmute::{AsBytes, FromBytes},253 pub fn read<T: FromBytes>(&mut self) -> Result<T> { in read()
35 unsafe impl kernel::transmute::FromBytes for MyStruct {}