pub trait TATrait<MC: ModelCheckerContext, SC>:
ThresholdAutomaton
+ Sized
+ Debug {
type TransformationError: Error;
// Required method
fn try_from_general_ta(
ta: GeneralThresholdAutomaton,
ctx: &MC,
spec_ctx: &SC,
) -> Result<Vec<Self>, Self::TransformationError>;
}Expand description
Trait that needs to be implemented by an internal threshold automaton representation
Required Associated Types§
Sourcetype TransformationError: Error
type TransformationError: Error
Error type that can occur when trying to convert from threshold automaton
Required Methods§
Sourcefn try_from_general_ta(
ta: GeneralThresholdAutomaton,
ctx: &MC,
spec_ctx: &SC,
) -> Result<Vec<Self>, Self::TransformationError>
fn try_from_general_ta( ta: GeneralThresholdAutomaton, ctx: &MC, spec_ctx: &SC, ) -> Result<Vec<Self>, Self::TransformationError>
Try to derive the internal threshold automaton representation from a general threshold automaton
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.