pub struct StatePred<T> {
pub pred: FnSpec<(T,), bool>,
}Fields§
§pred: FnSpec<(T,), bool>Implementations§
Source§impl<T> StatePred<T>
impl<T> StatePred<T>
Sourcepub open spec fn and(self, other: Self) -> Self
pub open spec fn and(self, other: Self) -> Self
{ StatePred::new(|s| self.apply(s) && other.apply(s)) }Sourcepub open spec fn or(self, other: Self) -> Self
pub open spec fn or(self, other: Self) -> Self
{ StatePred::new(|s| self.apply(s) || other.apply(s)) }Sourcepub open spec fn implies(self, other: Self) -> Self
pub open spec fn implies(self, other: Self) -> Self
{ StatePred::new(|s| self.apply(s) ==> other.apply(s)) }Sourcepub open spec fn state_forall<A>(
a_to_state_pred: FnSpec<(A,), StatePred<T>>,
) -> StatePred<T>
pub open spec fn state_forall<A>( a_to_state_pred: FnSpec<(A,), StatePred<T>>, ) -> StatePred<T>
{ StatePred::new(|s| forall |a| #[trigger] a_to_state_pred(a).apply(s)) }Sourcepub open spec fn state_exists<A>(
a_to_state_pred: FnSpec<(A,), StatePred<T>>,
) -> StatePred<T>
pub open spec fn state_exists<A>( a_to_state_pred: FnSpec<(A,), StatePred<T>>, ) -> StatePred<T>
{ StatePred::new(|s| exists |a| #[trigger] a_to_state_pred(a).apply(s)) }Auto Trait Implementations§
impl<T> Freeze for StatePred<T>
impl<T> RefUnwindSafe for StatePred<T>where
T: RefUnwindSafe,
impl<T> Send for StatePred<T>where
T: Send,
impl<T> Sync for StatePred<T>where
T: Sync,
impl<T> Unpin for StatePred<T>where
T: Unpin,
impl<T> UnwindSafe for StatePred<T>where
T: 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