Lines Matching full:slice
31 /// A mutable or immutable reference to a byte slice.
33 /// `ByteSlice` abstracts over the mutability of a byte slice reference, and is
42 /// return a byte slice with the same address and length. This must hold even if
54 /// A mutable reference to a byte slice.
57 /// a byte slice, and is implemented for various special reference types such as
92 /// SplitByteSlice` and `b: B`, if `b.deref()` returns a byte slice with address
117 // dereference to a byte slice of the same address and length. Thus, in split_at()
126 /// Splits the slice at the midpoint, possibly omitting bounds checks.
150 /// byte slice.
153 /// ownership, and so they cannot soundly be moved by-value into a byte slice
175 /// mutable byte slice.
179 /// slice type (`&mut [u8]`). Some methods in this crate's API (such as
246 use core::slice::from_raw_parts_mut; in split_at_unchecked()
270 // - The entire memory range of each slice is contained within a in split_at_unchecked()
281 // - The memory referenced by the returned slice cannot be accessed in split_at_unchecked()
292 // [1] https://doc.rust-lang.org/std/slice/fn.from_raw_parts_mut.html#safety in split_at_unchecked()
335 cell::Ref::map_split(self, |slice| in split_at_unchecked()
337 // `slice.len()`. in split_at_unchecked()
339 SplitByteSlice::split_at_unchecked(slice, mid) in split_at_unchecked()
355 cell::RefMut::map_split(self, |slice| in split_at_unchecked()
357 // `slice.len()` in split_at_unchecked()
359 SplitByteSlice::split_at_unchecked(slice, mid) in split_at_unchecked()