pub enum ModalState {
Pending,
Close(ModalAction),
}
Variants§
Pending
If the modal is currently open and still waiting for user input
Close(ModalAction)
If the modal should be closed in the next frame
Trait Implementations§
Source§impl Clone for ModalState
impl Clone for ModalState
Source§fn clone(&self) -> ModalState
fn clone(&self) -> ModalState
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for ModalState
impl RefUnwindSafe for ModalState
impl Send for ModalState
impl Sync for ModalState
impl Unpin for ModalState
impl UnwindSafe for ModalState
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