pub struct RelyCondition<S: Clone + Eq + Hash> {
pub transitions: HashSet<Transition<S>>,
}Expand description
A rely condition: a set of transitions the environment may perform.
Fields§
§transitions: HashSet<Transition<S>>The set of allowed environment transitions.
Implementations§
Source§impl<S: Clone + Eq + Hash> RelyCondition<S>
impl<S: Clone + Eq + Hash> RelyCondition<S>
Sourcepub fn add(&mut self, t: Transition<S>)
pub fn add(&mut self, t: Transition<S>)
Add a transition to the rely.
Sourcepub fn allows(&self, t: &Transition<S>) -> bool
pub fn allows(&self, t: &Transition<S>) -> bool
Check whether a transition is allowed by this rely.
Trait Implementations§
Auto Trait Implementations§
impl<S> Freeze for RelyCondition<S>
impl<S> RefUnwindSafe for RelyCondition<S>where
S: RefUnwindSafe,
impl<S> Send for RelyCondition<S>where
S: Send,
impl<S> Sync for RelyCondition<S>where
S: Sync,
impl<S> Unpin for RelyCondition<S>where
S: Unpin,
impl<S> UnsafeUnpin for RelyCondition<S>
impl<S> UnwindSafe for RelyCondition<S>where
S: UnwindSafe,
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