pr4xis 0.6.0

Prove your domain is correct — ontology-driven rule enforcement with category theory, logical composition, and runtime state machines
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use std::fmt::Debug;

/// A situation is a snapshot of the world at a point in time.
///
/// Situations are immutable — every action produces a NEW situation.
/// The old situation is preserved for history/undo.
///
/// Implement this for your domain state (chess board, elevator positions,
/// case phase, etc.)
pub trait Situation: Clone + Debug + PartialEq {
    /// Human-readable description of this situation.
    fn describe(&self) -> String;

    /// Is this a terminal situation (no further actions possible)?
    fn is_terminal(&self) -> bool;
}