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///
14/// ```compile_fail
15/// #![deny(unused_must_use)]
16/// use qubit_argument::ArgumentBound;
17///
18/// ArgumentBound::Unbounded;
19/// ```
20#[must_use]
21#[derive(Debug, Clone, PartialEq, Eq)]
22pub enum ArgumentBound {
23 /// Places no limit on this side of the range.
24 Unbounded,
25 /// Includes the captured endpoint in the range.
26 Included(ArgumentValue),
27 /// Excludes the captured endpoint from the range.
28 Excluded(ArgumentValue),
29}