MCPcopy Create free account
hub / github.com/docknetwork/crypto / IndexIsOutOfBounds

Class IndexIsOutOfBounds

utils/src/try_iter.rs:7–10  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5#[derive(Debug, Clone, PartialEq, Eq)]
6#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
7pub struct IndexIsOutOfBounds {
8 pub index: usize,
9 pub length: usize,
10}
11
12/// Maps supplied iterator and attempts to pair each `Ok(_)` item with an item from the slice which has provided index.
13/// Returns `Err` containing an invalid index in case slice length is exceeded.

Callers 1

fromMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected