pub struct TransferFunction {
pub name: String,
pub effects: Vec<TransferEffect>,
}Expand description
A transfer function maps an abstract state at a point to the next point.
Fields§
§name: String§effects: Vec<TransferEffect>Implementations§
Source§impl TransferFunction
impl TransferFunction
Sourcepub fn add_effect(&mut self, effect: TransferEffect)
pub fn add_effect(&mut self, effect: TransferEffect)
Add an effect.
Sourcepub fn apply(&self, env: &IntervalEnv) -> IntervalEnv
pub fn apply(&self, env: &IntervalEnv) -> IntervalEnv
Apply the transfer function to an environment.
Sourcepub fn effect_count(&self) -> usize
pub fn effect_count(&self) -> usize
Return the number of effects.
Auto Trait Implementations§
impl Freeze for TransferFunction
impl RefUnwindSafe for TransferFunction
impl Send for TransferFunction
impl Sync for TransferFunction
impl Unpin for TransferFunction
impl UnsafeUnpin for TransferFunction
impl UnwindSafe for TransferFunction
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