pub enum BuyMenuState {
SelectItem {
cursor: usize,
},
Quantity {
item_index: usize,
quantity: u8,
},
Confirm {
item_index: usize,
quantity: u8,
selected: ConfirmChoice,
},
Result {
dialogue: BuyResult,
return_to_list: bool,
},
}Expand description
Phases inside the Buy flow.
Variants§
SelectItem
Cursor over the shop inventory list.
Quantity
Choosing quantity (1‥99).
Confirm
Yes/No confirmation before committing money.
Result
Result of the transaction attempt.
Trait Implementations§
Source§impl Clone for BuyMenuState
impl Clone for BuyMenuState
Source§fn clone(&self) -> BuyMenuState
fn clone(&self) -> BuyMenuState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BuyMenuState
impl Debug for BuyMenuState
impl Eq for BuyMenuState
Source§impl PartialEq for BuyMenuState
impl PartialEq for BuyMenuState
impl StructuralPartialEq for BuyMenuState
Auto Trait Implementations§
impl Freeze for BuyMenuState
impl RefUnwindSafe for BuyMenuState
impl Send for BuyMenuState
impl Sync for BuyMenuState
impl Unpin for BuyMenuState
impl UnsafeUnpin for BuyMenuState
impl UnwindSafe for BuyMenuState
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