qubit_argument/lib.rs
1/*******************************************************************************
2 *
3 * Copyright (c) 2025 - 2026 Haixing Hu.
4 *
5 * SPDX-License-Identifier: Apache-2.0
6 *
7 * Licensed under the Apache License, Version 2.0.
8 *
9 ******************************************************************************/
10//! # Qubit Argument
11//!
12//! Provides argument and state validation helpers for Rust applications.
13//!
14
15/// Argument validation traits, functions, and error types.
16pub mod argument;
17
18pub use argument::{
19 ArgumentError,
20 ArgumentResult,
21 CollectionArgument,
22 NumericArgument,
23 OptionArgument,
24 StringArgument,
25 check_argument,
26 check_argument_fmt,
27 check_argument_with_message,
28 check_bounds,
29 check_element_index,
30 check_position_index,
31 check_position_indexes,
32 check_state,
33 check_state_with_message,
34 require_element_non_null,
35 require_equal,
36 require_not_equal,
37 require_null_or,
38};