We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e92442d commit afad564Copy full SHA for afad564
hdf5-rs/src/hl/space.rs
@@ -56,7 +56,8 @@ impl Dataspace {
56
/// Select a slice (known as a 'hyperslab' in HDF5 terminology) of the Dataspace.
57
/// Returns the shape of array that is capable of holding the resulting slice.
58
/// Useful when you want to read a subset of a dataset.
59
- pub fn select_slice(&self, slice: &AsRef<[SliceOrIndex]>) -> Result<Vec<Ix>>
+ pub fn select_slice<S>(&self, slice: S) -> Result<Vec<Ix>>
60
+ where S: AsRef<[SliceOrIndex]>
61
{
62
let shape = self.dims();
63
let ss: &[SliceOrIndex] = slice.as_ref();
0 commit comments