pub enum Outcome {
Changed {
entry: String,
chars: usize,
budget: usize,
},
Full {
chars: usize,
budget: usize,
entries: Vec<String>,
},
NotFound(String),
Unchanged(String),
}Expand description
What a mutation did, in words worth showing the person watching.
Variants§
Changed
The file changed: the entry, and the room left afterwards.
Full
The change would not fit. The current entries come back so the next attempt can prune instead of guessing.
NotFound(String)
Nothing matched, so nothing changed.
Unchanged(String)
Nothing to do: the text is already there.
Implementations§
Trait Implementations§
impl Eq for Outcome
impl StructuralPartialEq for Outcome
Auto Trait Implementations§
impl Forget for Outcome
impl Freeze for Outcome
impl Move for Outcome
impl RefUnwindSafe for Outcome
impl Send for Outcomewhere
RawVecInner: Send,
impl Sync for Outcomewhere
RawVecInner: Sync,
impl Unpin for Outcome
impl UnsafeUnpin for Outcomewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for Outcomewhere
RawVecInner: 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.