Skip to main content

qubit_argument/argument/constraint/
pattern_expectation.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//! Pattern expectations used by string validation.
9
10/// Whether a string is expected to match a pattern.
11#[derive(Debug, Clone, Copy, PartialEq, Eq)]
12pub enum PatternExpectation {
13    /// Requires the string to match the pattern.
14    Match,
15    /// Requires the string not to match the pattern.
16    NoMatch,
17}