Home
last modified time | relevance | path

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

/linux/rust/zerocopy/src/
H A Dbyte_slice.rs52 pub unsafe trait ByteSlice: Deref<Target = [u8]> + Sized {} interface
61 pub trait ByteSliceMut: ByteSlice + DerefMut {}
62 impl<B: ByteSlice + DerefMut> ByteSliceMut for B {}
73 pub unsafe trait CopyableByteSlice: ByteSlice + Copy + CloneableByteSlice {}
84 pub unsafe trait CloneableByteSlice: ByteSlice + Clone {}
101 pub unsafe trait SplitByteSlice: ByteSlice {
159 pub unsafe trait IntoByteSlice<'a>: ByteSlice {
200 unsafe impl ByteSlice for &[u8] {} impl
238 unsafe impl ByteSlice for &mut [u8] {} impl
326 unsafe impl ByteSlice for cell::Ref<'_, [u8]> {}
[all …]
H A Dref.rs20 ByteSlice, ByteSliceMut, CloneableByteSlice, CopyableByteSlice, IntoByteSlice,
89 impl<B: ByteSlice, T: ?Sized> Ref<B, T> {
100 pub(crate) unsafe fn as_byte_slice(&self) -> &impl ByteSlice { in as_byte_slice() argument
207 B: ByteSlice,
273 B: ByteSlice,
455 B: ByteSlice,
714 B: ByteSlice,
750 B: ByteSlice,
800 B: ByteSlice,
890 B: ByteSlice,
[all …]
H A Ddeprecated.rs19 B: ByteSlice,
61 B: ByteSlice,
112 B: ByteSlice,
125 B: ByteSlice,