Home
last modified time | relevance | path

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

/linux-6.15/rust/kernel/
H A Dtransmute.rs50 pub unsafe trait AsBytes {} interface
55 $(unsafe impl$($($generics)*)? AsBytes for $t {})*
69 {<T: AsBytes>} [T],
70 {<T: AsBytes, const N: usize>} [T; N],
H A Ddma.rs12 transmute::{AsBytes, FromBytes},
132 pub struct CoherentAllocation<T: AsBytes + FromBytes> {
140 impl<T: AsBytes + FromBytes> CoherentAllocation<T> {
270 pub unsafe fn field_write<F: AsBytes>(&self, field: *mut F, val: F) { in field_write()
286 impl<T: AsBytes + FromBytes> Drop for CoherentAllocation<T> {
306 unsafe impl<T: AsBytes + FromBytes + Send> Send for CoherentAllocation<T> {}
H A Duaccess.rs13 transmute::{AsBytes, FromBytes},
346 pub fn write<T: AsBytes>(&mut self, value: &T) -> Result { in write()
/linux-6.15/samples/rust/
H A Drust_dma.rs33 unsafe impl kernel::transmute::AsBytes for MyStruct {}