qubit_argument/argument/constraint/argument_bound.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//! Numeric range bound constraints.
9
10use crate::argument::ArgumentValue;
11
12/// One side of a numeric range constraint.
13#[derive(Debug, Clone, PartialEq, Eq)]
14pub enum ArgumentBound {
15 /// Places no limit on this side of the range.
16 Unbounded,
17 /// Includes the captured endpoint in the range.
18 Included(ArgumentValue),
19 /// Excludes the captured endpoint from the range.
20 Excluded(ArgumentValue),
21}