Skip to main content

TransitionSystemGenerator

Trait TransitionSystemGenerator 

Source
pub trait TransitionSystemGenerator {
    type Ts<'a>: TransitionSystem
       where Self: 'a;

    // Required method
    fn generate<'a>(&'a self) -> Self::Ts<'a>;
}
Expand description

A type that can generate instances of a TransitionSystem.

Required Associated Types§

Source

type Ts<'a>: TransitionSystem where Self: 'a

The type of TransitionSystem to be generated.

Required Methods§

Source

fn generate<'a>(&'a self) -> Self::Ts<'a>

Generate a new instance of the TransitionSystem.

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.

Implementors§

Source§

impl TransitionSystemGenerator for CsModel

Source§

type Ts<'a> = CsModelRun<'a> where Self: 'a

Source§

impl TransitionSystemGenerator for PgModel

Source§

type Ts<'a> = PgModelRun<'a> where Self: 'a