Searched refs:slice_ref (Results 1 – 5 of 5) sorted by relevance
932 let sub = bytes.slice_ref(slice); in test_slice_ref()952 let sub = bytes.slice_ref(slice); in slice_ref_empty()963 assert_eq!(Bytes::new(), bytes.slice_ref(slice)); in slice_ref_empty_subslice()972 bytes.slice_ref(slice); in slice_ref_catches_not_a_subset()980 assert_eq!(Bytes::new(), bytes.slice_ref(slice)); in slice_ref_not_an_empty_subset()988 assert_eq!(Bytes::new(), bytes.slice_ref(slice)); in empty_slice_ref_not_an_empty_subset()
144 - Fix panic in `Bytes::slice_ref` if argument is an empty slice.213 * Add `Bytes::slice_ref` (#208).
759 tables::SliceTable::RowReference slice_ref = *opt_thread_slice_ref; in ParseThreadEndEvent() local760 std::optional<int64_t> tts = slice_ref.thread_ts(); in ParseThreadEndEvent()763 slice_ref.set_thread_dur(*thread_timestamp_ - *tts); in ParseThreadEndEvent()765 std::optional<int64_t> tic = slice_ref.thread_instruction_count(); in ParseThreadEndEvent()768 slice_ref.set_thread_instruction_delta( in ParseThreadEndEvent()
147 TensorRef<Tensor<const T, 1> > slice_ref(m.slice(offsets, m.dimensions())); in test_const_slice() local148 VERIFY_IS_EQUAL(slice_ref(0), 42); in test_const_slice()
305 pub fn slice_ref(&self, subset: &[u8]) -> Self { in slice_ref() method