pub enum SceneUpdateResult<SR: Clone + PartialEq + Debug, SN: Clone + PartialEq + Debug> {
Nothing,
Push(bool, SN),
Pop(Option<SR>),
}
Expand description
Variants§
Nothing
Do nothing, the current scene remains the foreground scene
Push(bool, SN)
Open a child scene
Arguments
0
bool
- If true this scene will be closed as well as opening the new scene1
SN
- Data for SceneSwitcher so it can create the new scene
Pop(Option<SR>)
Close this scene, data may be included to be returned to the parent scene
Trait Implementations§
source§impl<SR: Clone + Clone + PartialEq + Debug, SN: Clone + Clone + PartialEq + Debug> Clone for SceneUpdateResult<SR, SN>
impl<SR: Clone + Clone + PartialEq + Debug, SN: Clone + Clone + PartialEq + Debug> Clone for SceneUpdateResult<SR, SN>
source§fn clone(&self) -> SceneUpdateResult<SR, SN>
fn clone(&self) -> SceneUpdateResult<SR, SN>
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 moresource§impl<SR: Debug + Clone + PartialEq + Debug, SN: Debug + Clone + PartialEq + Debug> Debug for SceneUpdateResult<SR, SN>
impl<SR: Debug + Clone + PartialEq + Debug, SN: Debug + Clone + PartialEq + Debug> Debug for SceneUpdateResult<SR, SN>
source§impl<SR: PartialEq + Clone + PartialEq + Debug, SN: PartialEq + Clone + PartialEq + Debug> PartialEq<SceneUpdateResult<SR, SN>> for SceneUpdateResult<SR, SN>
impl<SR: PartialEq + Clone + PartialEq + Debug, SN: PartialEq + Clone + PartialEq + Debug> PartialEq<SceneUpdateResult<SR, SN>> for SceneUpdateResult<SR, SN>
source§fn eq(&self, other: &SceneUpdateResult<SR, SN>) -> bool
fn eq(&self, other: &SceneUpdateResult<SR, SN>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<SR: Clone + PartialEq + Debug, SN: Clone + PartialEq + Debug> StructuralPartialEq for SceneUpdateResult<SR, SN>
Auto Trait Implementations§
impl<SR, SN> RefUnwindSafe for SceneUpdateResult<SR, SN>where SN: RefUnwindSafe, SR: RefUnwindSafe,
impl<SR, SN> Send for SceneUpdateResult<SR, SN>where SN: Send, SR: Send,
impl<SR, SN> Sync for SceneUpdateResult<SR, SN>where SN: Sync, SR: Sync,
impl<SR, SN> Unpin for SceneUpdateResult<SR, SN>where SN: Unpin, SR: Unpin,
impl<SR, SN> UnwindSafe for SceneUpdateResult<SR, SN>where SN: UnwindSafe, SR: 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