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 duplicate 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 for SceneUpdateResult<SR, SN>
impl<SR: PartialEq + Clone + PartialEq + Debug, SN: PartialEq + Clone + PartialEq + Debug> PartialEq for SceneUpdateResult<SR, SN>
impl<SR: Clone + PartialEq + Debug, SN: Clone + PartialEq + Debug> StructuralPartialEq for SceneUpdateResult<SR, SN>
Auto Trait Implementations§
impl<SR, SN> Freeze for SceneUpdateResult<SR, SN>
impl<SR, SN> RefUnwindSafe for SceneUpdateResult<SR, SN>where
SN: RefUnwindSafe,
SR: RefUnwindSafe,
impl<SR, SN> Send for SceneUpdateResult<SR, SN>
impl<SR, SN> Sync for SceneUpdateResult<SR, SN>
impl<SR, SN> Unpin for SceneUpdateResult<SR, SN>
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