pub enum Context<'a> {
Rolling,
Appending(AppendPayload<'a>),
Rerolling(RerollPayload<'a>),
Unrolling,
Restoring,
}Expand description
Used when calling the generators to state which type of user operation are we trying to do. Can provide and store ephemeral state throughout the generation call.
Variants§
Trait Implementations§
impl<'a> StructuralPartialEq for Context<'a>
Auto Trait Implementations§
impl<'a> Freeze for Context<'a>
impl<'a> RefUnwindSafe for Context<'a>
impl<'a> Send for Context<'a>
impl<'a> Sync for Context<'a>
impl<'a> Unpin for Context<'a>
impl<'a> UnwindSafe for Context<'a>
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