Skip to main content

rstm_traits/
lib.rs

1/*
2    Appellation: rstmt-traits <library>
3    Created At: 2026.01.11:10:44:09
4    Contrib: @FL03
5*/
6//! traits used to define common behaviors, operations, and interfaces for Turing machines and
7//! their components.
8#![crate_type = "lib"]
9#![allow(
10    clippy::len_without_is_empty,
11    clippy::missing_docs_in_private_items,
12    clippy::missing_errors_doc,
13    clippy::missing_panics_doc,
14    clippy::missing_safety_doc,
15    clippy::module_inception,
16    clippy::needless_doctest_main,
17    clippy::new_ret_no_self,
18    clippy::should_implement_trait,
19    clippy::upper_case_acronyms
20)]
21#![cfg_attr(not(feature = "std"), no_std)]
22#![cfg_attr(all(feature = "alloc", feature = "nightly"), feature(allocator_api))]
23// external crates
24#[cfg(feature = "alloc")]
25extern crate alloc;
26// macros
27#[macro_use]
28pub(crate) mod macros {
29    #[macro_use]
30    pub(crate) mod seal;
31}
32// modules
33mod io;
34mod symbols;
35
36mod ops {
37    //! useful operations for finite state machines (Turing Machines) and their rules
38    #[doc(inline)]
39    pub use self::{execute::*, handle::*, increment::*, percentage::*, step::*};
40
41    mod execute;
42    mod handle;
43    mod increment;
44    mod percentage;
45    mod step;
46}
47// re-exports
48#[doc(inline)]
49pub use self::{io::*, ops::*, symbols::*};
50// prelude
51#[doc(hidden)]
52pub mod prelude {
53    pub use crate::io::*;
54    pub use crate::ops::*;
55    pub use crate::symbols::*;
56}