pub struct CsModel { /* private fields */ }Expand description
A definition type that instances new CsModelRun.
Implementations§
Source§impl CsModel
impl CsModel
Sourcepub fn new(cs: ChannelSystemBuilder) -> Self
pub fn new(cs: ChannelSystemBuilder) -> Self
Creates a new CsModel from a ChannelSystemBuilder.
Sourcepub fn add_predicate(&mut self, predicate: Expression<Atom>) -> usize
pub fn add_predicate(&mut self, predicate: Expression<Atom>) -> usize
Adds a new predicate to the CsModel,
which is an expression over the CS’s channels.
Trait Implementations§
Source§impl TransitionSystemGenerator for CsModel
impl TransitionSystemGenerator for CsModel
Source§type Ts<'a> = CsModelRun<'a>
where
Self: 'a
type Ts<'a> = CsModelRun<'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 CsModel
impl RefUnwindSafe for CsModel
impl Send for CsModel
impl Sync for CsModel
impl Unpin for CsModel
impl UnsafeUnpin for CsModel
impl UnwindSafe for CsModel
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