pub trait Causable: Identifiable {
// Required method
fn is_singleton(&self) -> bool;
}Expand description
The Causable trait defines the core behavior for all causal elements.
It requires implementing the Identifiable trait.
Required Methods§
Sourcefn is_singleton(&self) -> bool
fn is_singleton(&self) -> bool
Determines if the causaloid represents a single, indivisible causal unit.
This method helps distinguish base-case causaloids from composite structures like collections or graphs.
§Returns
true if the implementor is a Singleton type, false otherwise.
Implementors§
impl<I, O, PS, C> Causable for Causaloid<I, O, PS, C>
Implements the Causable trait for Causaloid.
This trait provides fundamental properties and methods for any entity that can
participate in a causal relationship. For Causaloid, it primarily defines
how to determine if a causaloid represents a single, atomic causal unit.