MCPcopy Create free account
hub / github.com/Rust-GPU/rust-cuda / index

Method index

crates/cust/src/memory/device/device_slice.rs:471–473  ·  view source on GitHub ↗
(self, slice: &DeviceSlice<T>)

Source from the content-addressed store, hash-verified

469 (self..self + 1).get_unchecked(slice)
470 }
471 fn index(self, slice: &DeviceSlice<T>) -> DeviceSlice<T> {
472 slice.index(self..self + 1)
473 }
474}
475
476impl<T: DeviceCopy> DeviceSliceIndex<T> for Range<usize> {

Callers

nothing calls this directly

Calls 7

slice_index_order_failFunction · 0.85
slice_end_index_len_failFunction · 0.85
into_slice_rangeFunction · 0.85
get_uncheckedMethod · 0.80
lenMethod · 0.45

Tested by

no test coverage detected