Skip to main content

extract_array_index

Function extract_array_index 

Source
pub fn extract_array_index(
    uri: &ArrayUriReference,
) -> Result<Option<usize>, Error>
Expand description

Returns the array index (if present) specified in the URI.

For example:

  • Returns Ok(None) for "some/path.star",
  • Returns Ok(None) for "some/path.png",
  • Returns Ok(Some(10)) for "https://example.com/some/path.star#10",
  • Returns Err for "some/path.png#eleven".