| /linux/rust/zerocopy/src/ |
| H A D | deprecated.rs | 17 impl<B, T> Ref<B, T> impl 26 pub fn new(bytes: B) -> Option<Ref<B, T>> { in new() 31 impl<B, T> Ref<B, T> impl 40 pub fn new_from_prefix(bytes: B) -> Option<(Ref<B, T>, B)> { in new_from_prefix() 45 impl<B, T> Ref<B, T> implementation 54 pub fn new_from_suffix(bytes: B) -> Option<(B, Ref<B, T>)> { in new_from_suffix() 59 impl<B, T> Ref<B, T> implementation 71 pub fn new_unaligned(bytes: B) -> Option<Ref<B, T>> { in new_unaligned() 76 impl<B, T> Ref<B, T> implementation 88 pub fn new_unaligned_from_prefix(bytes: B) -> Option<(Ref<B, T>, B)> { in new_unaligned_from_prefix() [all …]
|
| H A D | ref.rs | 62 pub struct Ref<B, T: ?Sized>( struct 70 impl<B, T: ?Sized> Ref<B, T> { implementation 82 pub(crate) unsafe fn new_unchecked(bytes: B) -> Ref<B, T> { in new_unchecked() 85 Ref(bytes, PhantomData) in new_unchecked() 89 impl<B: ByteSlice, T: ?Sized> Ref<B, T> { implementation 112 impl<B: ByteSliceMut, T: ?Sized> Ref<B, T> { impl 135 impl<'a, B: IntoByteSlice<'a>, T: ?Sized> Ref<B, T> { implementation 158 impl<'a, B: IntoByteSliceMut<'a>, T: ?Sized> Ref<B, T> { implementation 181 impl<B: CloneableByteSlice + Clone, T: ?Sized> Clone for Ref<B, T> { implementation 183 fn clone(&self) -> Ref<B, T> { in clone() [all …]
|
| H A D | byte_slice.rs | 29 use crate::Ref; 326 unsafe impl ByteSlice for cell::Ref<'_, [u8]> {} implementation 332 unsafe impl SplitByteSlice for cell::Ref<'_, [u8]> { implementation 335 cell::Ref::map_split(self, |slice| in split_at_unchecked() 417 let slice_ref: cell::Ref<'_, [u8]> = cell::Ref::map(borrow, |a| &a[..]); in test_ref_split_at_unchecked()
|
| H A D | lib.rs | 561 use {FromZeros as FromZeroes, IntoBytes as AsBytes, Ref as LayoutVerified}; 5210 match Ref::<_, Unalign<Self>>::sized_from(source) { in read_from_bytes() 5211 Ok(r) => Ok(Ref::read(&r).into_inner()), in read_from_bytes() 5268 match Ref::<_, Unalign<Self>>::sized_from_prefix(source) { in read_from_prefix() 5269 Ok((r, suffix)) => Ok((Ref::read(&r).into_inner(), suffix)), in read_from_prefix() 5320 match Ref::<_, Unalign<Self>>::sized_from_suffix(source) { in read_from_suffix() 5321 Ok((prefix, r)) => Ok((prefix, Ref::read(&r).into_inner())), in read_from_suffix()
|
| H A D | error.rs | 132 use crate::{FromBytes, Ref};
|
| /linux/Documentation/sound/cards/ |
| H A D | hdspm.rst | 148 Speed-mode or Slave (Autosync). Also see "Preferred Sync Ref" 155 * Preferred Sync Ref
|
| /linux/rust/syn/ |
| H A D | token.rs | 729 "ref" pub struct Ref 908 [ref] => { $crate::token::Ref };
|
| /linux/Documentation/ABI/testing/ |
| H A D | sysfs-bus-usb | 42 rest is optional. The `Ref*` tuple can be used to tell the
|