qubit_argument/argument/constraint/index_role.rs
1// =============================================================================
2// Copyright (c) 2025 - 2026 Haixing Hu.
3//
4// SPDX-License-Identifier: Apache-2.0
5//
6// Licensed under the Apache License, Version 2.0.
7// =============================================================================
8//! Index roles used by indexed argument validation.
9
10/// The role of an index in an indexed argument operation.
11#[derive(Debug, Clone, Copy, PartialEq, Eq)]
12pub enum IndexRole {
13 /// Identifies an existing element and therefore excludes the collection
14 /// end.
15 Element,
16 /// Identifies an insertion or boundary position, including the collection
17 /// end.
18 Position,
19}