Enum Removed
pub enum Removed {
Deleted,
Nothing,
}Expand description
What Fixture::remove_outside_port reports it did.
The rule asserts Removed::Deleted before it reads anything back. That is
how a fixture that claims REMOVAL and forgets the
override fails on every run, with a message naming the method, rather than
on a read-back that could be blamed on the store.
Deliberately exhaustive, like Armed. A removal either happened or it did
not, and a third answer would be one the rule could not judge. It carries no
count: the rule reads the store back, which is stronger than anything a
fixture could report about itself.
Variants§
Deleted
The override deleted every event the store held at the named positions, from the store’s own storage, and nothing else.
Nothing
Nothing was removed. Only the provided body returns this.
Trait Implementations§
impl Copy for Removed
impl Eq for Removed
impl StructuralPartialEq for Removed
Auto Trait Implementations§
impl Freeze for Removed
impl RefUnwindSafe for Removed
impl Send for Removed
impl Sync for Removed
impl Unpin for Removed
impl UnsafeUnpin for Removed
impl UnwindSafe for Removed
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