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 ==
.