contained_core/
lib.rs

1/*
2    Appellation: lib <module>
3    Created At: 2026.01.20:14:52:56
4    Contrib: @FL03
5*/
6//! the core modules supporting the `contained` crate focused on establishing foundational
7//! primitives and utilities for getter, setters, and wrappers.
8#![crate_type = "lib"]
9#![allow(
10    clippy::missing_docs_in_private_items,
11    clippy::missing_errors_doc,
12    clippy::missing_safety_doc,
13    clippy::module_inception,
14    clippy::needless_doctest_main,
15    clippy::upper_case_acronyms
16)]
17#![cfg_attr(not(feature = "std"), no_std)]
18#![cfg_attr(all(feature = "alloc", feature = "nightly"), feature(allocator_api))]
19// external crates
20#[cfg(feature = "alloc")]
21extern crate alloc;
22// macros
23#[macro_use]
24pub(crate) mod macros {
25    #[macro_use]
26    pub mod seal;
27    #[macro_use]
28    pub mod format;
29    #[macro_use]
30    pub mod wrapper;
31}
32// modules
33pub mod error;
34
35pub mod traits {
36    //! core traits and interfaces for wrappers and their operations, formatting, etc.
37    #[doc(inline)]
38    pub use self::{get::*, wrapper::*};
39
40    mod get;
41    mod wrapper;
42}
43// re-exports
44#[doc(inline)]
45pub use self::error::{Error, Result};
46// prelude
47#[doc(hidden)]
48pub mod prelude {
49    #[cfg(feature = "macros")]
50    pub use crate::{fmt_wrapper, wrapper};
51}