Lines Matching defs:get
30 /// `build_index` and `get` (if [`Some`] is returned) must ensure that:
35 /// This means that if the input pointer is valid, then the pointer returned by `get`, `index`
43 fn get(self, slice: *mut T) -> Option<*mut Self::Output>;
51 match Self::get(self, slice) {
68 fn get(self, slice: *mut [T; N]) -> Option<*mut Self::Output> {
69 <I as ProjectIndex<[T]>>::get(self, slice)
83 // SAFETY: `get`-returned pointer has the same provenance as `slice` and the offset is checked to
89 fn get(self, slice: *mut [T]) -> Option<*mut T> {
108 // SAFETY: `get`-returned pointer has the same provenance as `slice` and the offset is checked to
114 fn get(self, slice: *mut [T]) -> Option<*mut [T]> {
134 unsafe { self.get(slice).unwrap_unchecked() }
143 fn get(self, slice: *mut [T]) -> Option<*mut [T]> {
144 (0..self.end).get(slice)
158 fn get(self, slice: *mut [T]) -> Option<*mut [T]> {
159 (self.start..slice.len()).get(slice)
168 // SAFETY: `get` returned the pointer as is, so it always has the same provenance and offset of 0.
173 fn get(self, slice: *mut [T]) -> Option<*mut [T]> {
339 let $ptr = $crate::ptr::projection::ProjectIndex::get($index, $ptr)