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