Skip to main content

Step

Struct Step 

Source
pub struct Step { /* private fields */ }
Expand description

What an action does: its guard and its effects (LOGIC.md 13.5).

Implementations§

Source§

impl Step

Source

pub fn when(&mut self, f: Formula)

The action can happen only when f holds.

Source

pub fn add(&mut self, r: &Expr, e: Expr)

r' = r + e, combined with the action’s other effects on r in the order written.

Source

pub fn remove(&mut self, r: &Expr, e: Expr)

r' = r - e

Source

pub fn set(&mut self, r: &Expr, e: Expr)

r' = e

Trait Implementations§

Source§

impl Debug for Step

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for Step

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

§

impl Forget for Step

§

impl Freeze for Step

§

impl Move for Step

§

impl RefUnwindSafe for Step

§

impl Send for Step
where RawVecInner: Send, Arc<FormulaNode>: Send, Arc<ExprNode>: Send,

§

impl Sync for Step
where RawVecInner: Sync, Arc<FormulaNode>: Sync, Arc<ExprNode>: Sync,

§

impl Unpin for Step
where *const u8 is !null: Unpin, Arc<FormulaNode>: Unpin, Arc<ExprNode>: Unpin,

§

impl UnsafeUnpin for Step

§

impl UnwindSafe for Step
where RawVecInner: UnwindSafe, Arc<FormulaNode>: UnwindSafe, Arc<ExprNode>: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.