Causable

Trait Causable 

Source
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§

Source

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§

Source§

impl<I, O, PS, C> Causable for Causaloid<I, O, PS, C>
where I: Default, O: Default + Debug, PS: Default + Clone, C: Clone,

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.