pub struct PgModel { /* private fields */ }Expand description
A ProgramGraph-based model implementing TransitionSystem with synchronous concurrency.
Implementations§
Source§impl PgModel
impl PgModel
Sourcepub fn new(
pg: ProgramGraphBuilder,
global_vars: Vec<Var>,
predicates: Vec<PgExpression>,
) -> Self
pub fn new( pg: ProgramGraphBuilder, global_vars: Vec<Var>, predicates: Vec<PgExpression>, ) -> Self
Create a new PgModel from the given ProgramGraph and predicates over its internal state.
Trait Implementations§
Source§impl TransitionSystemGenerator for PgModel
impl TransitionSystemGenerator for PgModel
Source§type Ts<'a> = PgModelRun<'a>
where
Self: 'a
type Ts<'a> = PgModelRun<'a> where Self: 'a
The type of
TransitionSystem to be generated.Source§fn generate<'a>(&'a self) -> Self::Ts<'a>
fn generate<'a>(&'a self) -> Self::Ts<'a>
Generate a new instance of the
TransitionSystem.Auto Trait Implementations§
impl Freeze for PgModel
impl RefUnwindSafe for PgModel
impl Send for PgModel
impl Sync for PgModel
impl Unpin for PgModel
impl UnsafeUnpin for PgModel
impl UnwindSafe for PgModel
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more