Lines Matching refs:slice
6 use crate::lib::std::slice::Iter;
47 /// Useful functions to calculate the offset between slices and show a hexdump of a slice
89 /// Helper trait for types that can be viewed as a byte slice
91 /// Casts the input type to a byte slice
329 /// Returns a slice of `count` bytes. panics if count > length
461 /// Fails if the produced slice is empty.
486 /// Fails if the produced slice is empty.
633 // find() returns a byte index that is already in the slice at a char boundary
649 // find() returns a byte index that is already in the slice at a char boundary
663 // find() returns a byte index that is already in the slice at a char boundary
665 // the end of slice is a char boundary
685 // find() returns a byte index that is already in the slice at a char boundary
691 // the end of slice is a char boundary
984 /// Succeeds if `parse()` succeeded. The byte slice implementation
1008 fn slice(&self, range: R) -> Self;
1013 fn slice(&self, range: $ty) -> Self {
1339 /// Helper trait to show a byte slice as a hex dump