pub struct Overrides { /* private fields */ }Expand description
The overrides of a scenario: value overrides and slice overrides, in the order given.
Implementations§
Source§impl Overrides
impl Overrides
Sourcepub fn value(self, cell: CellRef, value: Scalar) -> Overrides
pub fn value(self, cell: CellRef, value: Scalar) -> Overrides
cell answers value (of the function’s return type) in the scenario.
Sourcepub fn slice(
self,
slice: CellRef,
add: Vec<(CellRef, Scalar)>,
remove: Vec<CellRef>,
) -> Overrides
pub fn slice( self, slice: CellRef, add: Vec<(CellRef, Scalar)>, remove: Vec<CellRef>, ) -> Overrides
The members of the stored slice slice (a cell reference with its open arguments left
open) change: add are new members with their values, remove are members that go.
Sourcepub fn slice_members(
self,
slice: CellRef,
members: Vec<(CellRef, Scalar)>,
) -> Overrides
pub fn slice_members( self, slice: CellRef, members: Vec<(CellRef, Scalar)>, ) -> Overrides
The members of the stored slice slice become exactly members (cells and their values,
possibly none): the stored members are not read. Since 0.6.0 (SPEC 5.9).
Sourcepub fn slice_full(
self,
slice: CellRef,
members: Option<Vec<(CellRef, Scalar)>>,
add: Vec<(CellRef, Scalar)>,
remove: Vec<CellRef>,
) -> Overrides
pub fn slice_full( self, slice: CellRef, members: Option<Vec<(CellRef, Scalar)>>, add: Vec<(CellRef, Scalar)>, remove: Vec<CellRef>, ) -> Overrides
The general form of the slice overrides. members, when Some, is the member set, as
slice_members; it is refused with a non-empty add or
remove (E_SLICE_MEMBER, when the scenario is built). Since 0.6.0.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Overrides
impl Freeze for Overrides
impl Move for Overrides
impl RefUnwindSafe for Overrides
impl Send for Overrides
impl Sync for Overrides
impl Unpin for Overrides
impl UnsafeUnpin for Overrides
impl UnwindSafe for Overrides
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