pub struct SubApps {
pub main: SubApp,
pub sub_apps: HashMap<InternedAppLabel, SubApp>,
}
Expand description
The collection of sub-apps that belong to an App
.
Fields§
§main: SubApp
The primary sub-app that contains the “main” world.
sub_apps: HashMap<InternedAppLabel, SubApp>
Other, labeled sub-apps.
Implementations§
Source§impl SubApps
impl SubApps
Sourcepub fn iter(&self) -> impl Iterator<Item = &SubApp> + '_
pub fn iter(&self) -> impl Iterator<Item = &SubApp> + '_
Returns an iterator over the sub-apps (starting with the main one).
Sourcepub fn iter_mut(&mut self) -> impl Iterator<Item = &mut SubApp> + '_
pub fn iter_mut(&mut self) -> impl Iterator<Item = &mut SubApp> + '_
Returns a mutable iterator over the sub-apps (starting with the main one).
Sourcepub fn update_subapp_by_label(&mut self, label: impl AppLabel)
pub fn update_subapp_by_label(&mut self, label: impl AppLabel)
Extract data from the main world into the SubApp
with the given label and perform an update if it exists.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for SubApps
impl !RefUnwindSafe for SubApps
impl Send for SubApps
impl !Sync for SubApps
impl Unpin for SubApps
impl !UnwindSafe for SubApps
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
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Converts
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
, which can then be
downcast
into Box<dyn ConcreteType>
where ConcreteType
implements Trait
.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Converts
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
, which can then be further
downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Converts
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Converts
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.Source§impl<T> DowncastSend for T
impl<T> DowncastSend for T
Source§impl<T> FromWorld for Twhere
T: Default,
impl<T> FromWorld for Twhere
T: Default,
Source§fn from_world(_world: &mut World) -> T
fn from_world(_world: &mut World) -> T
Creates Self
using default()
.